One Hat Cyber Team
Your IP :
18.191.50.205
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib64
/
python2.7
/
Demo
/
pdist
/
View File Name :
rcslib.pyo
� V �Qc�����������@���sY���d��Z��d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�d�������YZ�d�S(���s����RCS interface module. Defines the class RCS, which represents a directory with rcs version files and (possibly) corresponding work files. i����Nt���RCSc�����������B���s��e��Z�d��Z�e�j�e�j�d�Z�d����Z�d����Z�d�d���Z �d����Z �d����Z�d����Z�d ����Z �d �d�d���Z�d�d�d���Z�d�d ���Z�d����Z�d����Z�d����Z�d����Z�d����Z�d�d�d���Z�d����Z�d����Z�d����Z�d�d���Z�d����Z�d����Z�RS(���s7��RCS interface class (local filesystem version). An instance of this class represents a directory with rcs version files and (possible) corresponding work files. Methods provide access to most rcs operations such as checkin/checkout, access to the rcs metadata (revisions, logs, branches etc.) as well as some filesystem operations such as listing all rcs version files. XXX BUGS / PROBLEMS - The instance always represents the current directory so it's not very useful to have more than one instance around simultaneously s���-_=+c���������C���s���d�S(���s���Constructor.N(����(���t���self(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���__init__&���s����c���������C���s���d�S(���s���Destructor.N(����(���R���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���__del__*���s����t����c���������C���si���|��j��|�d�|���}�|�j����}�|��j�|���}�|�rH�|�d�|�}�n�|�d�d�k�re�|�d� }�n��|�S(���sm���Return the full log text for NAME_REV as a string. Optional OTHERFLAGS are passed to rlog. s���rlog s���%s: %si����s��� (���t���_opent���readt ���_closepipe(���R���t���name_revt ���otherflagst���ft���datat���status(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���log0���s���� c���������C���s���|��j��|���}�|�d�S(���s%���Return the head revision for NAME_REVt���head(���t���info(���R���R���t���dict(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR���?���s����c��� ������C���s����|��j��|�d���}�i��}�x|�|�j����}�|�s1�Pn��|�d�d�k�rG�q�n��t�j�|�d���}�|�d�k�r�|�|� t�j�|�|�d���}�}�|�|�|�<q�q�|��j�|���}�|�r��t�|���n��|�S(���s��Return a dictionary of info (from rlog -h) for NAME_REV The dictionary's keys are the keywords that rlog prints (e.g. 'head' and its values are the corresponding data (e.g. '1.3'). XXX symbolic names and locks are not returned s���rlog -hi����s��� t���:i���(���R���t���readlinet���stringt���findt���stripR���t���IOError( ���R���R���R ���R���t���linet���it���keyt���valueR���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR���D���s ���� �"c���������C���s2���|��j��|���\�}�}�d�|�|�f�}�|��j�|���S(���s���Set an rcs lock on NAME_REV.s���rcs -l%s %s(���t ���checkfilet���_system(���R���R���t���namet���revt���cmd(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���lockb���s����c���������C���s2���|��j��|���\�}�}�d�|�|�f�}�|��j�|���S(���s���Clear an rcs lock on NAME_REV.s���rcs -u%s %s(���R���R���(���R���R���R���R���R���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���unlockh���s����i����c���������C���sM���|��j��|���\�}�}�|�r$�d�}�n�d�}�d�|�|�|�|�f�}�|��j�|���S(���s����Check out NAME_REV to its work file. If optional WITHLOCK is set, check out locked, else unlocked. The optional OTHERFLAGS is passed to co without interpretation. Any output from co goes to directly to stdout. s���-ls���-us ���co %s%s %s %s(���R���R���(���R���R���t���withlockR ���R���R���t���lockflagR���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���checkoutn���s����� c��� ������C���s����|��j��|���\�}�}�|��j�|���}�|�s4�d�}�n��|�rW�|�d�d�k�rW�|�d�}�n��d�}�|�r��t�j����}�|�j�|���|�j����d�|�|�|�j�|�|�f�} �n.�t�j�d�d�|���}�d�|�|�|�|�|�f�} �|��j �| ���S( ���s_��Check in NAME_REV from its work file. The optional MESSAGE argument becomes the checkin message (default "<none>" if None); or the file description if this is a new file. The optional OTHERFLAGS argument is passed to ci without interpretation. Any output from ci goes to directly to stdout. s���<none>i����s��� s���-us���ci %s%s -t%s %s %ss���([\"$`])s���\\\1s���ci %s%s -m"%s" %s %s( ���t ���_unmanglet���isvalidt���tempfilet���NamedTemporaryFilet���writet���flushR���t���ret���subR���( ���R���R���t���messageR ���R���R���t���newR#���R ���R���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���checkin���s"���� � c���������C���s����t��j�t��j���}�t�|��j�|���}�t��j�j�d���rd�t��j�d���}�t�|��j�|���}�|�|�}�n��t�|��j�|���}�|��j �|�|���S(���s=���Return a list of all version files matching optional PATTERN.R����( ���t���ost���listdirt���curdirt���filtert���_isrcst���patht���isdirt���mapt���realnamet���_filter(���R���t���patt���filest���files2(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt ���listfiles����s���� c���������C���s@���|��j��|���}�t�j�j�|���p?�t�j�j�t�j�j�d�|�����S(���s0���Test whether NAME has a version file associated.R����(���t���rcsnameR0���R5���t���isfilet���join(���R���R���t���namev(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR&�������s����c���������C���s����|��j��|���r�|�}�n �|�d�}�t�j�j�|���r8�|�St�j�j�d�t�j�j�|�����}�t�j�j�|���ro�|�St�j�j�d���r��t�j�j�d�|���S|�Sd�S(���s����Return the pathname of the version file for NAME. The argument can be a work file name or a version file name. If the version file does not exist, the name of the version file that would be created by "ci" is returned. s���,vR����N(���R4���R0���R5���R?���R@���t���basenameR6���(���R���R���RA���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR>�������s����� �!�c���������C���sN���|��j��|���r�|�d� }�n�|�}�t�j�j�|���r8�|�St�j�j�|���}�|�S(���s����Return the pathname of the work file for NAME. The argument can be a work file name or a version file name. If the work file does not exist, the name of the work file that would be created by "co" is returned. i����(���R4���R0���R5���R?���RB���(���R���RA���R���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR8�������s����� �c���������C���s����|��j��|�d���}�|�j����}�|��j�|���}�|�r?�t�|���n��|�sI�d�S|�d�d�k�rf�|�d� }�n��|��j�|���|��j�|���k�S(���s����Test whether FILE (which must have a version file) is locked. XXX This does not tell you which revision number is locked and ignores any revision you may pass in (by virtue of using rlog -L -R). s ���rlog -L -Ri����s��� N(���R���R���R���R���t���NoneR8���(���R���R���R ���R���R���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���islocked����s����� c���������C���sD���|��j��|���\�}�}�|��j�|���s:�t�j�d�|�f���n��|�|�f�S(���s}���Normalize NAME_REV into a (NAME, REV) tuple. Raise an exception if there is no corresponding version file. s���not an rcs file %r(���R%���R&���R0���t���error(���R���R���R���R���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR�������s����s���co -ps���-rc���������C���sV���|��j��|���\�}�}�|��j�|���}�|�r?�|�d�|�|�}�n��t�j�d�|�|�f���S(���s��INTERNAL: open a read pipe to NAME_REV using optional COMMAND. Optional FLAG is used to indicate the revision (default -r). Default COMMAND is "co -p". Return a file object connected by a pipe to the command's output. t��� s���%s %r(���R���R>���R0���t���popen(���R���R���R���t���rflagR���R���RA���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR�������s ����c���������C���sm���t��|���t��d���k�r1�|�d�f�}�\�}�}�n�|�\�}�}�x)�|�D]!�}�|�|��j�k�rD�t�d���qD�qD�W|�S(���s����INTERNAL: Normalize NAME_REV argument to (NAME, REV) tuple. Raise an exception if NAME contains invalid characters. A NAME_REV argument is either NAME string (implying REV='') or a tuple of the form (NAME, REV). R���s���bad char in rev(���t���typet���okcharst ���ValueError(���R���R���R���R���t���c(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR%�����s���� c���������C���s����|�j�����}�|�s�d �St�|�d���\�}�}�|�d�k�rA�d�|�f�S|�d�@}�|�d�k�rf�d�}�|�}�n�d�}�|�d�@r��|�d�}�n��|�|�f�S( ���s:���INTERNAL: Close PIPE and print its exit status if nonzero.i���i����t���exiti���t���stoppedt���killedi����s ���(coredump)N(���t���closeRC���t���divmod(���R���R ���t���stst���detailt���reasont���signalt���code(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR�����s������ c���������C���s3���|�d�}�t��j�|���}�|�r/�t�d�|���n��d�S(���s{��INTERNAL: run COMMAND in a subshell. Standard input for the command is taken from /dev/null. Raise IOError when the exit status is not zero. Return whatever the calling method should return; normally None. A derived class may override this method and redefine it to capture stdout/stderr of the command and return it. s��� </dev/nulls���command exit status %dN(���R0���t���systemR���(���R���R���RR���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR���#��s���� �c���������C���s9���|�r$�|�d���}�t��|�|���}�n�|�}�|�j����|�S(���s����INTERNAL: Return a sorted copy of the given list of FILES. If a second PATTERN argument is given, only files matching it are kept. No check for valid filenames is made. c���������S���s���t��j��|��|���S(���N(���t���fnmatch(���R���R:���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���keep=��s����(���R3���t���sort(���R���R;���R:���RY���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR9���5��s���� c���������C���s,���y�t��j�|���Wn�t��j�k �r'�n�Xd�S(���s)���INTERNAL: remove FILE without complaints.N(���R0���t���unlinkRE���(���R���t���fn(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���_removeE��s����c���������C���s���|�d�d�k�S(���s)���INTERNAL: Test whether NAME ends in ',v'.i����s���,v(����(���R���R���(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR4���L��s����N(���t���__name__t ���__module__t���__doc__R���t ���ascii_letterst���digitsRJ���R���R���R ���R���R���R ���R!���R$���RC���R/���R=���R&���R>���R8���RD���R���R���R%���R���R���R9���R]���R4���(����(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyR�������s0��� ! (����(���R`���RX���R0���R+���R���R'���R����(����(����(����s)���/usr/lib64/python2.7/Demo/pdist/rcslib.pyt���<module>���s���