403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.216.58
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67269618 ( 67269618)
PHP Version : 8.4.28
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/hgext/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�hG6��(�SrSSKJr SSKrSSKJr SSKJr SSK	J
r
JrJrJ
r
JrJrJrJrJrJr SSKJr Sr0r\R0"\5r\R2"5r\R4"5r\"S	S
SS9 \"S	S
SS9 \"S	SSS9 "SS\R6R85r"SS5rSrSr Sr!\"S	SS1S9S5r"\"SSS1S9S5r#\"SSS1S9S5r$Sr%\"S 5S!5r&\"S"5S#5r'\"S$5S%5r(g)&a?showing remotebookmarks and remotebranches in UI (EXPERIMENTAL)

By default both remotebookmarks and remotebranches are turned on. Config knob to
control the individually are as follows.

Config options to tweak the default behaviour:

remotenames.bookmarks
  Boolean value to enable or disable showing of remotebookmarks (default: True)

remotenames.branches
  Boolean value to enable or disable showing of remotebranches (default: True)

remotenames.hoistedpeer
  Name of the peer whose remotebookmarks should be hoisted into the top-level
  namespace (default: 'default')
�)�annotationsN)�_)�bin)
�	bookmarks�error�
extensions�logexchange�
namespaces�	registrar�
revsetlang�smartset�templateutil�util)�
stringutilsships-with-hg-core�remotenames�	bookmarksT)�default�branches�hoistedpeersdefaultc�^�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
r\rSrg)�lazyremotenamedict�Ma�
Read-only dict-like Class to lazily resolve remotename entries

We are doing that because remotenames startup was slow.
We lazily read the remotenames file once to figure out the potential entries
and store them in self.potentialentries. Then when asked to resolve an
entry, if it is not in self.potentialentries, then it isn't there, if it
is in self.potentialentries we resolve it and store the result in
self.cache. We cannot be lazy is when asked all the entries (keys).
c�F�0Ul0UlXlX lSUlg)NF)�cache�potentialentries�_kind�_repo�loaded)�self�kind�repos   �3/usr/lib/python3/dist-packages/hgext/remotenames.py�__init__�lazyremotenamedict.__init__Ys"����
� "����
��
����c��SUlURn[R"XR5Hup#nUS-U-nX#U4UR
U'M! g)z?Read the remotenames file, store entries matching selected kindT�/N)rrr	�readremotenamefilerr)rr!�node�rpath�rname�names      r"�_load�lazyremotenamedict._load`sX������z�z��"-�"@�"@��*�*�#
��D���4�<�%�'�D�+/��*=�D�!�!�$�'�	#
r%c�"�XR;agURUup#nURn[U5nURR	U5 URS:XaXVR5(agU/$![
a gf=f)z;Check that the node for potentialentry exists and return itNr)rrr�	changelog�rev�LookupErrorr�closesbranch)r�potentialentryr)�remoter,r!�binnodes       r"�_resolvedata�lazyremotenamedict._resolvedatajs����!6�!6�6��!�2�2�>�B���d��z�z���d�)��	��N�N���w�'��:�:��$���)C�)C�)E�)E���y����	��	�s�B�
B�
Bc��UR(dUR5 URU5nUbU$[5e�N)rr-�_fetchandcache�KeyError�r�key�vals   r"�__getitem__�lazyremotenamedict.__getitem__{s4���{�{��J�J�L��!�!�#�&���?��J��*�r%c�,�[UR5$r:)�iterr�rs r"�__iter__�lazyremotenamedict.__iter__�s���D�)�)�*�*r%c�,�[UR5$r:)�lenrrDs r"�__len__�lazyremotenamedict.__len__�s���4�(�(�)�)r%c��[er:��NotImplementedError)r�k�vs   r"�__setitem__�lazyremotenamedict.__setitem__����!�!r%c��[er:rL)rrNs  r"�__delitem__�lazyremotenamedict.__delitem__�rRr%c��XR;aURU$URU5nUbX RU'U$gr:)rr7r=s   r"r;�!lazyremotenamedict._fetchandcache�sB���*�*���:�:�c�?�"�����$���?�!�J�J�s�O��J�r%c�x�UR(dUR5 URR5$)z&Get a list of bookmark or branch names)rr-r�keysrDs r"rY�lazyremotenamedict.keys�s'���{�{��J�J�L��$�$�)�)�+�+r%c#�# �UR(dUR5 URR5HupU[	US5/4v� M g7f)z Iterate over (name, node) tuplesrN)rr-r�itemsr)rrN�vtups   r"�	iteritems�lazyremotenamedict.iteritems�sG����{�{��J�J�L��,�,�2�2�4�G�A��s�4��7�|�n�%�%�5�s�AA)rrrrrN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r#r-r7r@rErIrPrTr;rYr^r\�__static_attributes__�r%r"rrMsE��	��>��"�+�*�"�"��,�&�
�Er%rc�N�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
Srg
)�remotenames�a
This class encapsulates all the remotenames state. It also contains
methods to access that state in convenient ways. Remotenames are lazy
loaded. Whenever client code needs to ensure the freshest copy of
remotenames, use the `clearnames` method to force an eventual load.
c�0�XlUR5 gr:)r�
clearnames)rr!�argss   r"r#�remotenames.__init__�s���
����r%c��[SUR5Ul[SUR5UlUR	5 g)zClear all remote names staterrN)rrr�branches�_invalidatecacherDs r"rk�remotenames.clearnames�s2��+�L�$�*�*�E���*�;��
�
�C��
����r%c�<�SUlSUlSUlSUlgr:)�
_nodetobmarks�
_nodetobranch�
_hoisttonodes�
_nodetohoistsrDs r"rp�remotenames._invalidatecache�s"��!���!���!���!��r%c��UR$r:)rrDs r"�bmarktonodes�remotenames.bmarktonodes�s���~�~�r%c��UR(d^UR5n0UlUR5H3up#URRUS/5R	U5 M5 UR$)Nr)rsryr\�
setdefault�append)rryr,r)s    r"�nodetobmarks�remotenames.nodetobmarks�sg���!�!��,�,�.�L�!#�D��*�0�0�2�
���"�"�-�-�d�1�g�r�:�A�A�$�G�3��!�!�!r%c��UR$r:)rorDs r"�
branchtonodes�remotenames.branchtonodes�s���}�}�r%c��UR(ddUR5n0UlUR5H9up#UH.nURRU/5R	U5 M0 M; UR$r:)rtr�r\r|r})rr�r,�nodesr)s     r"�nodetobranch�remotenames.nodetobranch�so���!�!� �.�.�0�M�!#�D��,�2�2�4���!�D��&�&�1�1�$��;�B�B�4�H�"� 5��!�!�!r%c��UR(diUR5n0UlUS-
nUR5H9up4URU5(dMU[	U5SnX@RU'M; UR$)Nr')ruryr\�
startswithrH�r�hoist�marktonodesr,r)s     r"�hoisttonodes�remotenames.hoisttonodes�sz���!�!��+�+�-�K�!#�D���T�M�E�)�/�/�1�
���?�?�5�)�)���E�
��-�D�/3�&�&�t�,�2��!�!�!r%c�N�UR(d�UR5n0UlUS-
nUR5HYup4URU5(dMU[	U5SnURRUS/5R
U5 M[ UR$)Nr'r)rvryr\r�rHr|r}r�s     r"�nodetohoists�remotenames.nodetohoists�s����!�!��+�+�-�K�!#�D���T�M�E�)�/�/�1�
���?�?�5�)�)���E�
��-�D��&�&�1�1�$�q�'�2�>�E�E�d�K�2��!�!�!r%)rursrtrvrrroN)r`rarbrcrdr#rkrpryr~r�r�r�r�rerfr%r"rhrh�s4���� �"��"��"�	"�	"r%rhc���SUR;agURSnURU5H)nURX&5nU(dMUSnUSS4XF'M+ U"XX45$)N�remotebookmarksr� r%)�names�	listnamesr�)	�orig�uir!�fm�bmarks�nsr,r�r)s	         r"�wrapprintbookmarksr��sm������+��	
���&�	'�B����T�"������$�����Q�x���d�C�(���
#���"�%�%r%c�D�[R"[S[5 g)N�_printbookmarks)r�wrapfunctionrr�)r�s r"�extsetupr�s�����I�'8�:L�Mr%c
�L^�URRSSSS5 UR5(dg[U5Ul[
RnURSS5(avU"SSSSS	S
SS9nURRU5 URSS
5mT(a3U"SSSSU4SjU4SjU4SjS9nURRU5 URSS5(a+U"SSSSSSSS9nURRU5 gg)NsexperimentalrTsremotenames-extrr��remotebookmarksremote bookmark:  %s
c�R�URR5R5$r:)�_remotenamesryrY�r!s r"�<lambda>�reposetup.<locals>.<lambda>s��4�#4�#4�#A�#A�#C�#H�#H�#Jr%c�V�URR5RU/5$r:)r�ry�get�r!r,s  r"r�r��#��t�'8�'8�'E�'E�'G�'K�'K��b�(r%c�V�URR5RU/5$r:)r�r~r��r!r)s  r"r�r�r�r%)�templatename�	colorname�logfmtr��namemap�nodemaprshoistednamesshoistednameshoisted name:  %s
c�V>�URRT5R5$r:)r�r�rY)r!r�s �r"r�r�(s%���t�'8�'8�'E�'E��(��$�&�(r%c�Z>�URRT5RU/5$r:)r�r�r�)r!r,r�s  �r"r�r�+�)���4�+<�+<�+I�+I��,��#�d�B�-�, r%c�Z>�URRT5RU/5$r:)r�r�r�)r!r)r�s  �r"r�r�.r�r%r�remotebranches�remotebranchsremote branch:  %s
c�R�URR5R5$r:)r�r�rYr�s r"r�r�:s��4�#4�#4�#B�#B�#D�#I�#I�#Kr%c�V�URR5RU/5$r:)r�r�r�r�s  r"r�r�;s#��t�'8�'8�'F�'F�'H�'L�'L��b�(r%c�V�URR5RU/5$r:)r�r�r�r�s  r"r�r�>r�r%)r��	setconfig�localrhr�r
�	namespace�
configboolr��addnamespace�config)r�r!r��remotebookmarkns�
hoistednamens�remotebranchnsr�s      @r"�	reposetupr�s'����G�G���o�~�t�=O�P��:�:�<�<��#�D�)�D��	�	�	�B�	�}�}�^�\�2�2���+�'�,�J���
��	
�
�
��� 0�1��	�	�.�.�9�����,�(�-�� � ��M�
�J�J�#�#�M�2�	�}�}�^�[�1�1���*�%�*�K���
��	
�
�
����/�2r%�repo�ctx)�requiresc�p�URUS5nURUS5n/nSUR;a,URSRX#R55nSUR;a.XBRSRX#R55-
n[R"XSUSS9$)z<List of strings. Remote names associated with the changeset.r�r�r�r�s
remotenamer��plural��resourcer�r)r�
compatlist)�context�mappingr!�ctxrhs     r"�
remotenameskwr�Es������G�W�-�D�
�
�
�7�F�
+�C��K��T�Z�Z�'��j�j�!3�4�:�:�4����L���D�J�J�&��z�z�"3�4�:�:�4����L�L���"�"��-��^��r%r�c��URUS5nURUS5n/nSUR;a,URSRX#R55n[R"UUSUSS9$)z@List of strings. Remote bookmarks associated with the changeset.r�r�r�r�r�r�)r�r�r!r��remotebmarkss     r"�remotebookmarkskwr�Ws{�����G�W�-�D�
�
�
�7�F�
+�C��L��T�Z�Z�'��z�z�"4�5�;�;�D�(�(�*�M���"�"�����!��r%r�c��URUS5nURUS5n/nSUR;a,URSRX#R55n[R"UUSUSS9$)z?List of strings. Remote branches associated with the changeset.r�r�r�r�r�r�)r�r�r!r��remotebranchess     r"�remotebrancheskwr�js{�����G�W�-�D�
�
�
�7�F�
+�C��N��D�J�J�&����$5�6�<�<�T�8�8�:�N���"�"����� ��r%c�^
�[R"USS[S55nU(a;[R"[R
"US[S555upVnOS=pV[Rn[5nURm
UHjn	X�R;dMURU	n
U
RU5H2nU"U5(dMURU
RX55 M4 Ml US:Xa)U(d"[R"[S5U-5eU
4SjU5nU[ R""U5-$)	z<utility function to return a set of revs based on the rtypesr�sonly one argument acceptedsargument must be a stringNsliteralsremote name '%s' does not existc3�v># �UH.nTRU5(dMTRU5v� M0 g7fr:)�hasnoder1)�.0�n�cls  �r"�	<genexpr>�_revsetutil.<locals>.<genexpr>�s'����6�u�!��
�
�1�
�I�B�F�F�1�I�I�u�s�9�9)r�getargsrr�
stringmatcher�	getstringr�always�setr0r�r��updater�r�RepoLookupErrorr
�baseset)r!�subset�x�rtypesrlr �pattern�matcherr��rtyper�r,�revsr�s             @r"�_revsetutilr�}s������a��A�q�)F�'G�H�D��!+�!9�!9�� � ��a��!�,H�*I�J�"
���w�����+�+���E�E�	
���B����J�J�����E�"�B����T�*���t�}�}�����R�X�X�d�1�2�+���z��%��#�#�
�0�1�G�;�
�	
�7�u�6�D��H�$�$�T�*�*�*r%sremotenames([name])c��[XUS5$)z�All changesets which have a remotename on them. If `name` is
specified, only remotenames of matching remote paths are considered.

Pattern matching is supported for `name`. See :hg:`help revisions.patterns`.
)r�r��r��r!r�r�s   r"�remotenamesrevsetr��s���t�Q�(O�P�Pr%sremotebranches([name])c��[XUS5$)z�All changesets which are branch heads on remotes. If `name` is
specified, only remotenames of matching remote paths are considered.

Pattern matching is supported for `name`. See :hg:`help revisions.patterns`.
)r�r�r�s   r"�remotebranchesrevsetr��s���t�Q�(<�=�=r%sremotebookmarks([name])c��[XUS5$)z�All changesets which have bookmarks on remotes. If `name` is
specified, only remotenames of matching remote paths are considered.

Pattern matching is supported for `name`. See :hg:`help revisions.patterns`.
)r�r�r�s   r"�remotebmarksrevsetr��s���t�Q�(=�>�>r%))rd�
__future__r�collections.abc�collections�mercurial.i18nr�mercurial.noder�	mercurialrrrr	r
rrr
rr�mercurial.utilsr�
testedwith�configtable�
configitem�templatekeyword�revsetpredicate�abc�MutableMappingrrhr�r�r�r�r�r�r�r�r�r�rfr%r"�<module>rs����$#�������'�#�
���
�
!�
!�+�
.�
��+�+�-���+�+�-��
�����
�����
�����\����7�7�\�~C"�C"�L
&� N�<0�~��7�F�*;�<��=��"�#�w��.?�@��A��$�"�g�v�->�?��@��$+�:�'�(�Q�)�Q��*�+�>�,�>��+�,�?�-�?r%

Youez - 2016 - github.com/yon3zu
LinuXploit