403Webshell
Server IP : 74.208.236.52  /  Your IP : 216.73.216.240
Web Server : Apache
System : Linux infong527 4.4.400-icpu-115 #2 SMP Mon Jul 6 08:15:05 UTC 2026 x86_64
User : u44043973 ( 5404757)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/kunden/usr/lib/python3/dist-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/usr/lib/python3/dist-packages/mercurial/__pycache__/narrowspec.cpython-313.pyc
�

6�h�3����SSKJr SSKrSSKJr SSKJrJrJ	r	J
rJrJ
r
JrJr SrSrSrS	rS
rSrSSjrS
rSrSrSSjrSrSrSrSrSrSrSr Sr!SSjr"g)�)�annotationsN�)�_)�error�match�merge�
mergestate�scmutil�sparse�txnutil�utils
narrowspecsnarrowspec.dirstate)spath:srootfilesin:c�@�URS5n[U5 X4$)zxReturns the normalized version of a pattern and kind.

Returns a tuple with the normalized kind and normalized pattern.
�/)�rstrip�_validatepattern)�kind�pats  �6/usr/lib/python3/dist-packages/mercurial/narrowspec.py�normalizesplitpatternr)s"��
�*�*�T�
�C��S���9��c�:�[US-R55$)z?Returns the number of lines in s, including ending empty lines.�x)�len�
splitlines)�ss r�	_numlinesr3s��
��D��$�$�&�'�'rc��[U5S:�a[R"[S55eUR	5U:wa[R"[S55eURS5nSU;dSU;a[R"[S55eUS:wa&SU;a[R"[S	55eg
g
)z�Validates the pattern and aborts if it is invalid.

Patterns are stored in the narrowspec as newline-separated
POSIX-style bytestring paths. There's no escaping.
rs,newlines are not allowed in narrowspec pathssAleading or trailing whitespace is not allowed in narrowspec pathsr�.s..s0"." and ".." are not allowed in narrowspec pathsrs9empty path components are not allowed in narrowspec pathsN)rr�Abortr�strip�split)r�
componentss  rrr;s�����~����k�k�!�K�L�M�M��y�y�{�c���k�k�
�'�
�
�	
����4��J��z��U�j�0��k�k�
�A�B�
�	
��c�z�c�Z�'��k�k�
�J�K�
�	
�(�zrc�N�[R"X5up#S[X#5-$)zqReturns the normalized version of a text-format pattern.

If the pattern has no kind, the default will be added.
s%s:%s)�matchmod�	_patsplitr)�pattern�defaultkindrrs    r�normalizepatternr(]s'��
�"�"�7�8�I�D��+�D�6�6�6rc�\�UVs1sHn[U5iM nn[U5 U$s snf)axParses an iterable of patterns into a typed pattern set.

Patterns are assumed to be ``path:`` if no prefix is present.
For safety and performance reasons, only some prefixes are allowed.
See ``validatepatterns()``.

This function should be used on patterns that come from the user to
normalize and validate them to the internal data structure used for
representing patterns.
)r(�validatepatterns)�pats�orig�ress   r�
parsepatternsr.fs0��/3�
3�d�d��D�!�d�C�
3��S���J��4s�)c	��[R"S[U55 [U[5(d[
R"SU-5eUH]nUR[5(aM[
R"[S5U-[S5SR[5-S9e SSS5 g!,(df   g=f)alValidate that patterns are in the expected data structure and format.

And that is a set of normalized patterns beginning with ``path:`` or
``rootfilesin:``.

This function should be used to validate internal data structures
and patterns that are loaded from sources that use the internal,
prefixed pattern representation (but can't necessarily be fully trusted).
z)narrowspec.validatepatterns(pats size=%d)s'narrow patterns should be a set; got %rs$invalid prefix on narrow pattern: %ss8narrow patterns must begin with one of the following: %ss, ��hintN)r
�timedcmr�
isinstance�setr�ProgrammingError�
startswith�VALID_PREFIXESrr�join)r+rs  rr*r*vs���
���A�3�t�9�	M��$��$�$��(�(�:�T�A��
��C��>�>�.�1�1��k�k��=�>��D��-���j�j��0�	1���	�

N�	M�	M�s�AB<�1AB<�<
C
c�|�Sn[X-
5H
nX#S--
nM US-
n[U5H
nX$S--
nM U$)Ns
[include]
�
s
[exclude]
)�sorted)�includes�excludes�output�i�es     r�formatrA�sO��
�F�
�H�'�
(���e�)���)�
�n��F�
�H�
���e�)�����Mrc��U(d[R"5$[R"US/U=(d /U=(d /S9$)Nr��include�exclude)r$�neverr)�rootrDrEs   rrr�s8����~�~����>�>��c�2�w�}�"�g�m���rc��[R"XS5up#nU(a[R"[	S55e[U5 [U5 X#4$)NsnarrowsJincluding other spec files using '%include' is not supported in narrowspec)r�parseconfigrrrr*)�ui�spec�includepats�excludepats�profiless     rrIrI�sU��)/�);�);�B�i�)P�&�K�h���k�k�
�,�
�
�	
��[�!��[�!��#�#rc�P�Sn[R"UR5(aHS[-nURRU5(aURR
[5nUcURR
[5n[URU5$)Ns
%s.pending)	r�mayhavependingrG�FILENAME�svfs�exists�tryreadrIrJ)�reporK�pending_paths   r�loadrW�s{���D����d�i�i�(�(�$�x�/���9�9���L�)�)��9�9�$�$�X�.�D��|��y�y� � ��*���t�w�w��%�%rc�^^	�UR5n[U5 [U5 [X5m	UR5nUcSn[R
"U5e[
URT	5n[R"U5mU4SjnURSU5 URSU5 XPlU	4SjnURS[4USS9 g)N�-changing narrow spec outside of a transactionc�*>�T"5nUbSUlgg�N)�_pending_narrow_pats��tr�r�reporefs  �r�
clean_pending�save.<locals>.clean_pending�s����	�A��}�)-��&�rsnarrow-specc�(>�URT5 gr[��write��frKs �r�
write_spec�save.<locals>.write_spec�����
�G�G�D�Mrsstore��location)�
unfilteredr*rA�currenttransactionrr5rIrJ�weakref�ref�addpostclose�addabortr\�addfilegeneratorrQ)
rUrLrMr^�m�valuerarhr`rKs
        @@r�saverv�s�����?�?��D��[�!��[�!��+�+�D�	
�	 �	 �	"�B�	�z�;���$�$�Q�'�'��D�G�G�T�*���+�+�d�#��	.�
	����
�6�
���N�M�2�$)�!�	�	����
�K���	�	
rc�~^^�UR5nUR5n[UR6mUcSn[R
"U5e[R"U5mU4SjnURSU5 URSU5 URUl
U4SjnURS[4USS9 g)NrYc�*>�T"5nUbSUlggr[)�_pending_narrow_pats_dirstater]s  �rra�(copytoworkingcopy.<locals>.clean_pending�s����	�A��}�26��/�rsnarrow-spec-dirstatec�(>�URT5 gr[rdrfs �rrh�%copytoworkingcopy.<locals>.write_specrjrsplainrk)
rmrnrA�
narrowpatsrr5rorprqrrryrs�DIRSTATE_FILENAME)rUr^rtrarhr`rKs     @@r�copytoworkingcopyr�s�����?�?��D�	
�	 �	 �	"�B��4�?�?�#�D�	�z�;���$�$�Q�'�'��+�+�d�#��	7�
	���/��?�
���+�]�;�-1�_�_��*�	�	���#�
� ���	�	
rc��[U5nURU5 /nU(d[U5nO�SU;a�/nUH�n[R"[R"U55nXr;aURU5 MESnUH1n	UR
U	S-5(dMSnURU5  O U(aM�URU5 M� [U5S:XaS1nO[U5nO[U5nXdU4$)a:Restricts the patterns according to repo settings,
results in a logical AND operation

:param req_includes: requested includes
:param req_excludes: requested excludes
:param repo_includes: repo includes
:param repo_excludes: repo excludes
:return: include patterns, exclude patterns, and invalid include patterns.
spath:.FrTr)r4�updater
�
expandpath�normpath�appendr6r)
�req_includes�req_excludes�
repo_includes�
repo_excludes�res_excludes�invalid_includes�res_includes�req_include�valid�repo_includes
          r�restrictpatternsr�s����|�$�L����
�&�����=�)��	�-�	'���'�K��/�/�$�-�-��*D�E�K��+��#�#�K�0���E� -���)�)�,��*=�>�>� �E� �'�'��4��	!.�
�5� �'�'��4�(��|���!�%�;�L��|�,�L��<�(���'7�7�7rc�L�UHnURRU5 M  gr[)�wvfs�
unlinkpath)rU�filesrgs   r�_deletecleanfilesr�5s��
���	�	���Q��rc	�N�[R"5nUSR5nUHXnURR	U5(aM%URU[RURU5S4S5 MZ [R"UUUSUSSSS9 g)NrFsnarrowspec updated)�wctx�mctx�	overwrite�wantfiledata)
r�mergeresult�manifestr�rS�addfile�
mergestatemod�
ACTION_GET�flags�applyupdates)rU�pctxr��mresult�mfrgs      r�_writeaddedfilesr�:s������!�G�	
�d��	�	�	�B�
���y�y����"�"��O�O���(�(����!��e�$�%�	
��
�����
�$�Z�
�$�Z���
rc�"�[USS5(agURnURnUc5URR	[
5n[
URU5nX!:wa'[R"[S5[S5S9eg)N�_updatingnarrowspecFs"working copy's narrowspec is stales&run 'hg tracked --update-working-copy'r0)�getattrr}ry�vfsrTr~rIrJr�
StateErrorr)rU�	storespec�wcspec�oldspecs    r�checkworkingcopynarrowspecr�Os����t�*�E�2�2�����I�
�
/�
/�F�
�~��(�(�"�"�#4�5���T�W�W�g�.��
�����
�3�4��<�=�
�	
�rc	�"�URnUc8URR[5n[	UR
U5upEOUupEURupgSUl[URXES9n[URXgS9n	[R"X�5n
[R"X�5nUR5ceURnURU5 URU/SSSS9up�nSSS5 WR UR"-nUR$nU(aUR'W
5 OUR'W
5 [)UU5 [*R,"U5n[/U5H0nUR
R[1S5U"U5-5 M2 [/UR25H0nUR
R[1S5U"U5-5 M2 [/UR45H0nUR
R[1S5U"U5-5 M2 UU-HnUR7USSS	9 M US
n[R8"U
[:R<"U55n
UR?5RAU
5Vs/sH
nUU;dMUPM nnUHnUR7USSSS9 M [CUUU5 SUlg!,(df   GN=fs snf)z�updates the working copy and dirstate from the store narrowspec

When assumeclean=True, files that are not known to be clean will also
be deleted. It is then up to the caller to make sure they are clean.
NTrC)�subrepos�ignored�clean�unknowns$not deleting possibly dirty file %s
snot deleting unknown file %s
snot deleting ignored file %s
F)�
p1_tracked�
wc_trackedr)r�r��possibly_dirty)"ryr�rTr~rIrJr}r�rrGr$�differencematcher�currentwlock�dirstate�running_status�status�modified�addedr��extendr�r
�getuipathfnr;rr�r��update_file�intersectmatchersr�matcherr��walkr�)rU�assumeclean�oldr��oldincludes�oldexcludes�newincludes�newexcludes�oldmatch�newmatch�
addedmatch�removedmatch�ds�lookupr��_mtime_boundary�trackeddirtyr��uipathfnrgr��newfiless                      r�updateworkingcopyr�_s����
,�
,�C�
�{��(�(�"�"�#4�5��#.�t�w�w��#@� ��[�#&� ��#����K�#�D���T�Y�Y��I�H��T�Y�Y��I�H��+�+�H�?�J��-�-�h�A�L�����*�*�*�	
���B�	�	�	�4�	 �*,�)�)������+4�+
�'���
!��?�?�V�\�\�1�L��L�L�E��
���V�����F�#��d�E�"��"�"�4�(�H�
�L�
!�������
�6�7�(�1�+�E�	
�"��F�N�N�
#�������q�:�;�h�q�k�I�J�$�
�F�N�N�
#�������q�:�;�h�q�k�I�J�$�
�\�
!��
���q�U�u��=�"���:�D��+�+�J����t�8L�M�J��=�=�?�/�/�
�;�K�;�a�q��{��;�H�K�
��
���q�T�d�4��P���T�4��*�$�D��G
!�	 ��>Ls�%K:�4
L�L�:
L	)spath)NN)F)#�
__future__rro�i18nr�rrr$rr	r�r
rrr
rQr~r7rrrr(r.r*rArIrWrvrr�r�r�r�r��rr�<module>r�s���#���	�	�	���*�����(�
�D7�
� �<��$�"
&�#
�L
�>$8�R �
�*

� 9%r

Youez - 2016 - github.com/yon3zu
LinuXploit