HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/thread-self/root/lib64/python2.7/site-packages/mercurial/fileset.pyc
�
1�3\c@@s�ddlmZddlZddlZddlmZddlmZmZm	Z
mZmZm
Z
mZmZddlmZejZejZejZejZejZejZejZejZejZd�Z d�Z!d	�Z"d
�Z#d�Z$d�Z%d
�Z&d�Z'd�Z(d�Z)d�Z*ej+Z+e
j,e+�Z-e-dde.de�d��Z/e-dde.de�d��Z0e-dde.de�d��Z1e-dde.de�d��Z2e-dde.de�d��Z3e-dde.de�d��Z4e-d de.de�d!��Z5e-d"de.de�d#��Z6e-d$�d%��Z7e-d&de�d'��Z8e-d(�d)��Z9e-d*�d+��Z:e-d,de�d-��Z;e-d.de�d/��Z<e-d0de�d1��Z=e-d2de�d3��Z>e-d4de�d5��Z?d6�Z@d7�ZAe-d8de�d9��ZBe-d:de�d;��ZCe-d<de�d=��ZDe-d>�d?��ZEe-d@de�dA��ZFe-dBde�dC��ZGe-dD�dE��ZHie!dF6e"dG6e"dH6e#dI6e$dJ6e%dK6e&dL6e(dM6e)dN6e'dO6e*dP6ZIdQeJfdR��YZKddS�Z	dT�ZMe+jN�ZOdS(Ui(tabsolute_importNi(t_(terrortfilesetlangtmatchtmergetpycompatt	registrartscmutiltutil(t
stringutilcC@s7|stjtd���nt|d||d�S(Nsmissing argumentii(Rt
ParseErrorRtmethods(tmctxtx((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytgetmatch)scC@s1tt|d�j��}t|j|�|�S(Nsstatus hint must be a string(tsett	getstringtsplitRt
withstatus(R
Rthinttkeys((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytgetmatchwithstatus.scC@s|j|g�S(N(tmatcher(R
R((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytstringmatch2scC@s%t|t||tjtd���S(Nspattern must be a string(Rt_getkindpattmatchmodtallpatternkindsR(R
Rty((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytkindpatmatch5scG@sAtj}g|D]}t||td��^q}|j|�S(Nspattern must be a string(RRt
getpatternRR(R
txstallkindsRtpatterns((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyt
patternsmatch9s	(cC@s7t||�}t|j|�|�}tj||�S(N(RtnarrowedRtintersectmatchers(R
RRtxmtym((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytandmatch?scG@s/g|D]}t||�^q}tj|�S(N(RRtunionmatcher(R
RRtms((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytormatchDs"c@s1t||��|j�fd�dd�f�S(Nc@s�|�S(N((tf(tm(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyt<lambda>Jttpredreprs<not %r>(Rt	predicate(R
R((R,s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytnotmatchHscC@s7t||�}t|j|�|�}tj||�S(N(RR#Rtdifferencematcher(R
RRR%R&((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyt
minusmatchLscG@s%tjtd�dtd���dS(Ns can't use a list in this contextRssee 'hg help "filesets.x or y"'(RRR(R
R((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyt	listmatchQscC@syt|�}|tkr)t|||�Sd�}gtj�D]\}}||�r?|^q?}tj||��dS(NcS@st|dd�dk	S(Nt__doc__(tgetattrtNone(tfn((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-ZR.(t	getsymboltsymbolstitemsRtUnknownIdentifier(R
tatbtfuncnametkeeptsR8tsyms((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytfuncUs	1s
modified()t
callstatustweightcC@sDt|ddtd��t|j�j�}|j|jdd�S(s5File that is modified according to :hg:`status`.
    ismodified takes no argumentsR/tmodified(tgetargsRRtstatusRFR0t__contains__(R
RRA((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRFhssadded()cC@sDt|ddtd��t|j�j�}|j|jdd�S(s2File that is added according to :hg:`status`.
    isadded takes no argumentsR/tadded(RGRRRHRJR0RI(R
RRA((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRJqss	removed()cC@sDt|ddtd��t|j�j�}|j|jdd�S(s4File that is removed according to :hg:`status`.
    isremoved takes no argumentsR/tremoved(RGRRRHRKR0RI(R
RRA((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRKzss	deleted()cC@sDt|ddtd��t|j�j�}|j|jdd�S(sAlias for ``missing()``.
    isdeleted takes no argumentsR/tdeleted(RGRRRHRLR0RI(R
RRA((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRL�ss	missing()cC@sDt|ddtd��t|j�j�}|j|jdd�S(s4File that is missing according to :hg:`status`.
    ismissing takes no argumentsR/RL(RGRRRHRLR0RI(R
RRA((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytmissing�ss	unknown()cC@sDt|ddtd��t|j�j�}|j|jdd�S(s/File that is unknown according to :hg:`status`.isunknown takes no argumentsR/tunknown(RGRRRHRNR0RI(R
RRA((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRN�ss	ignored()cC@sDt|ddtd��t|j�j�}|j|jdd�S(s/File that is ignored according to :hg:`status`.isignored takes no argumentsR/tignored(RGRRRHROR0RI(R
RRA((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRO�ssclean()cC@sDt|ddtd��t|j�j�}|j|jdd�S(s2File that is clean according to :hg:`status`.
    isclean takes no argumentsR/tclean(RGRRRHRPR0RI(R
RRA((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRP�ss	tracked()cC@s2t|ddtd��|j|jjdd�S(s%File that is under Mercurial control.istracked takes no argumentsR/ttracked(RGRR0tctxRI(R
R((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRQ�ssbinary()cC@s5t|ddtd��|jd�dddt�S(s9File that appears to be binary (contains NUL bytes).
    isbinary takes no argumentscS@s
|j�S(N(tisbinary(tfctx((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-�R.R/tbinarytcache(RGRt
fpredicatetTrue(R
R((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRU�ssexec()c@s>t|ddtd��|j�|j�fd�dd�S(s'File that is marked as executable.
    isexec takes no argumentsc@s�j|�dkS(NR(tflags(R+(RR(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-�R.R/texec(RGRRRR0(R
R((RRs7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytexec_�s	s	symlink()c@s>t|ddtd��|j�|j�fd�dd�S(s&File that is marked as a symlink.
    issymlink takes no argumentsc@s�j|�dkS(Ntl(RY(R+(RR(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-�R.R/tsymlink(RGRRRR0(R
R((RRs7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR]�s	s
resolved()c@sot|ddtd��|jj�dk	r8|j�Stjj|jj	���|j
�fd�dd�S(s@File that is marked resolved according to :hg:`resolve -l`.
    isresolved takes no argumentsc@s|�ko�|dkS(Ntr((R+(R)(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-�R.R/tresolvedN(RGRRRtrevR7tneverRt
mergestatetreadtrepoR0(R
R((R)s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR_�s
sunresolved()c@sot|ddtd��|jj�dk	r8|j�Stjj|jj	���|j
�fd�dd�S(sBFile that is marked unresolved according to :hg:`resolve -l`.
    isunresolved takes no argumentsc@s|�ko�|dkS(Ntu((R+(R)(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-�R.R/t
unresolvedN(RGRRRR`R7RaRRbRcRdR0(R
R((R)s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRf�s
s
hgignore()cC@s,t|ddtd��|jj�jjS(s4File that matches the active .hgignore pattern.
    ishgignore takes no arguments(RGRRRRdtdirstatet_ignore(R
R((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pythgignore�ss
portable()cC@s/t|ddtd��|jd�dd�S(s^File that has a portable name. (This doesn't include filenames with case
    collisions.)
    isportable takes no argumentscS@stj|�dkS(N(R	tcheckwinfilenameR7(R+((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-�R.R/tportable(RGRR0(R
R((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRk�ssgrep(regex)c@s�y"tjt|td����Wn8tjk
r\}tjtd�tj|���nX|j�fd�dd�j	fdt
�S(s0File contains the given regular expression.
    sgrep requires a patternsinvalid match pattern: %sc@s�j|j��S(N(tsearchtdata(RT(R^(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-R.R/sgrep(%r)RV(tretcompileRRRRR
tforcebytestrRWtpatternRX(R
Rte((R^s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytgrep�s"cC@s�y�|j�j�}x�tjD]~\}}|j|�r|t|� }d}d|kr�|dt|jd�d�:}ntt|�||�dSqWt|�SWn*t	k
r�t
jtd�|��nXdS(Ng�?t.i
iscouldn't parse size: %s(
tstriptlowerR	t
_sizeunitstendswithtlenRtinttfloatt
ValueErrorRRR(RAtktvtntinc((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyt
_sizetomaxs$ 
c@sI|j�}d|kr^|jdd�\��tj���tj�����fd�S|jd�r�tj|d���fd�S|jd�r�tj|d���fd�S|jd	�r�tj|d���fd
�S|jd�rtj|d���fd�Stj|��t|����fd
�SdS(s>Return a function(size) -> bool from the ``size()`` expressiont-ic@s|�ko|�kS(N((R(R=R>(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-R.s<=ic@s
|�kS(N((R(R=(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-!R.t<c@s
|�kS(N((R(R=(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-$R.s>=c@s
|�kS(N((R(R=(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-'R.t>c@s
|�kS(N((R(R=(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-*R.c@s|�ko|�kS(N((R(R=R>(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-.R.N(RuRR	t	sizetointt
startswithR�(texpr((R=R>s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytsizematchers*



ssize(expression)c@sIt|td��}t|��|j�fd�dd|fdt�S(sFile size matches the given expression. Examples:

    - size('1k') - files from 1024 to 2047 bytes
    - size('< 20k') - files less than 20480 bytes
    - size('>= .5MB') - files at least 524288 bytes
    - size('4k - 1MB') - files from 4096 bytes to 1048576 bytes
    ssize requires an expressionc@s�|j��S(N(tsize(RT(R,(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-<R.R/ssize(%r)RV(RRR�RWRX(R
RR�((R,s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR�0s
sencoding(name)c@sCt|td����fd�}|j|dd�fdt�S(s�File can be successfully decoded with the given character
    encoding. May not be useful for encodings other than ASCII and
    UTF-8.
    s"encoding requires an encoding namec@sl|j�}y|jtj���tSWn;tk
rVtjtd����nt	k
rgt
SXdS(Nsunknown encoding '%s'(RmtdecodeRtsysstrRXtLookupErrorRtAbortRtUnicodeDecodeErrortFalse(RTtd(tenc(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytencpIs

R/sencoding(%r)RV(RRRWRX(R
RR�((R�s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytencoding?s
s
eol(style)c@sCt|td����fd�}|j|dd�fdt�S(s�File contains newlines of the given style (dos, unix, mac). Binary
    files are excluded, files with mixed line endings match multiple
    styles.
    seol requires a style namec@s�|j�rtS|j�}�dks4�dkrDd|krDtS�dkrftjd|�rftS�dkr�tjd|�r�tStS(Ntdostwins
tunixs(?<!
)
tmacs
(?!
)(RSR�RmRXRnRl(RTR�(R�(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyteolp_s$R/seol(%r)RV(RRRWRX(R
RR�((R�s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyteolUsscopied()cC@s;t|ddtd��d�}|j|dddt�S(s+File that is recorded as being copied.
    iscopied takes no argumentscS@s,|j�}|o+|dj�|j�kS(Ni(tparentstpath(RTtp((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pytcopiedprsR/tcopiedRV(RGRRWRX(R
RR�((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR�ls	srevs(revs, pattern)c	C@s�t|ddtd��\}}t|td��}|jj�}tj||g�}g}xF|D]>}||}|j|j�|�}|j	t
||��qgW|s�|j�St|�dkr�|dSt
j|�S(s�Evaluate set in the specified revisions. If the revset match multiple
    revs, this will return file matching pattern in any of the revision.
    isrevs takes two argumentss)first argument to revs must be a revisionii(RGRRRRRdRtrevrangetswitchtp1tappendRRaRyRR((	R
RR^trevspecRdtrevstmatchersRRtmc((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR�ws!


sstatus(base, rev, pattern)cC@s�|jj�}t|ddtd��\}}}td�}t||�}|sftj|��ntd�}t||�}|s�tj|��ntj|||g�\}	}
|j	|	|
�}t
||�S(s�Evaluate predicate using status change between ``base`` and
    ``rev``. Examples:

    - ``status(3, 7, added())`` - matches files added from "3" to "7"
    isstatus takes three argumentss+first argument to status must be a revisions,second argument to status must be a revision(RRRdRGRRRRRtrevpairR�R(R
RRdR>R^tbaseerrtbaserevspectreverrR�tbasectxRRR�((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRH�s$ssubrepo([pattern])c@s�t|ddtd��|j}|j�|r�t|tjtd���tj��}|rt�fd��n'tj|j	�j
d�gd|��|j��fd�d	d
�f�S|j�jd	d�SdS(
s9Subrepositories whose paths match the given pattern.
    iis"subrepo takes at most one arguments*subrepo requires a pattern or no argumentsc@s
|�kS(N((RA(tpat(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR,�sR.RRc@s|�ko�|�S(N((R+(R,tsstate(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR-�R.R/ssubrepo(%r)tsubrepoN(
RGRRRtsubstateRRRtpatkindRRdtrootR0RI(R
RRRtfast((R,R�R�s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR��s		'
RtstringtsymboltkindpatR!tandtortminustlisttnotRCtmatchctxcB@sqeZd
d�Zd�Zd�Zd�Zd�Zd�Zd�Z	d
e
d�Zd
e
d�Zd	�Z
RS(cC@s1||_||_||_d|_d|_dS(N(t_basectxRRt_badfnR7t_matcht_status(tselfR�RRtbadfn((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyt__init__�s
				cC@s4t|j|j|j�}||_|j|_|S(s<Create matchctx for a sub-tree narrowed by the given matcher(R�R�RRR�R�R�(R�RR
((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR#�s	cC@s%t|||j�}|j|_|S(N(R�R�R�(R�R�RRR
((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR��scC@s8t|j|j|j�}|j|_|j|�|S(sBCreate matchctx which has precomputed status specified by the keys(R�R�RRR�R�t_buildstatus(R�RR
((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR�s
c
C@sF|jj|j|jdd|kdd|kdd|k�|_dS(NtlistignoredROt	listcleanRPtlistunknownRN(R�RHRRR�R�(R�R((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR��scC@s|jS(N(R�(R�((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRH�scC@s|jj|d|j�S(NR�(RRRR�(R�R!((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR�scC@sR|rtj|�}n|jj�}tj|j|j�|d|d|j�S(s4Create a matcher to select files by predfn(filename)R/R�(	R	t	cachefuncRRRdRtpredicatematcherR�tgetcwdR�(R�tpredfnR/RVRd((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR0�s
c@s[|j��j�dkr0��fd�}n��fd�}|j|d|d|�S(s}Create a matcher to select files by predfn(fctx) at the current
        revision

        Missing files are ignored.
        c@s�y�|}Wntjk
r%tSXy|j�Wntjk
rKtSXy�|�SWnGttfk
r�}|jtjtj	tj
tjfkr�tS�nXdS(N(RR�R�tauditR�tIOErrortOSErrorterrnotENOENTtEACCEStENOTDIRtEISDIR(R+RTRr(RRR�(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyt
fctxpredfnsc@s0y�|}Wntjk
r%tSX�|�S(N(RR�R�(R+RT(RRR�(s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR�s
R/RVN(RRR`R7R0(R�R�R/RVR�((RRR�s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRW�s
	cC@s1|jj�}tj|j|j�d|j�S(s"Create a matcher to select nothingR�(RRRdRtnevermatcherR�R�R�(R�Rd((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyRasN(t__name__t
__module__R7R�R#R�RR�RHRR�R0RWRa(((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR��s						"cC@sUtj|�}tj|�}tj|�}t|j�|d|�}t||�S(s0Create a matcher for a single fileset expressionR�(RtparsetanalyzetoptimizeR�R�R(RRR�R�ttreeR
((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyR"s
cC@s.x'|jj�D]\}}|t|<qWdS(s8Load fileset predicates from specified registrarobj
    N(t_tablet	iteritemsR:(tuitextnametregistrarobjtnameRC((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyt
loadpredicate+s(Pt
__future__RR�Rnti18nRR.RRRRRRRRR	tutilsR
tWEIGHT_CHECK_FILENAMEt_WEIGHT_CHECK_FILENAMEtWEIGHT_READ_CONTENTSt_WEIGHT_READ_CONTENTSt
WEIGHT_STATUSt_WEIGHT_STATUStWEIGHT_STATUS_THOROUGHt_WEIGHT_STATUS_THOROUGHR9Rt
getkindpatRRRGRRRRR"R'R*R1R3R4RCR:tfilesetpredicateR0RXRFRJRKRLRMRNRORPRQRUR[R]R_RfRiRkRsR�R�R�R�R�R�R�RHR�RtobjectR�R7R�tvaluest
i18nfunctions(((s7/usr/lib64/python2.7/site-packages/mercurial/fileset.pyt<module>s�:
																					!	!	!	!	!	!!!				

		
X