
    6h                    F    S SK Jr  S SKrSSKJr  SSKJr  SSKJr  SS jr	g)	    )annotationsN   )_)short)errorc                   U R                   R                  n/ n[        5       n[        5       n[        5       n	[        5       n
U(       d9  UR                  5        nUR	                  S0 5      R                  5       nSSS5        Ub#  SUS'   SUS'   SUS'   SUS'   SUS	'   SUS
'   SUS'   U R                   R                  5       U R                  :X  a_  U
R                  U R                  5        X R                  /:w  a$  U R                  /U R                  /[        U5      4$ U R                  // U4$ U R                  R                  [        S5      5        / nU H4  nU" U5      (       d  UR                  U5        M#  U
R                  U5        M6     U(       d  [        U
5      / [        U5      4$ [        U5      nSnU R                  R                  [        S5      [        S5      S9nUR                  5        nUbF  US	==   [        U5      -  ss'   US
==   [        U5      -  ss'   US==   S-  ss'   US==   S-  ss'   UR	                  SSU05      R                  5       nSSS5        [         R"                  " W5      nU(       Ga  / nU(       Ga  UR%                  5       nUS   U;   a  M#  U R                  R'                  S[)        US   5      [)        US   5      4-  5        US   U R                  :X  a  GO|UU	;   a  U R                  R'                  S5        M  US   (       an  U" US   5      (       a^  U R                  R'                  S[)        US   5      [)        US   5      4-  5        UR                  USS 5        U	R                  U5        OUS   U;  a  US   U;  a  U" US   5      (       aN  U" US   5      (       a>  U R                  R'                  S[)        US   5      -  5        UR                  US   5        USS  H#  nU" U5      (       d  M  U
R                  U5        M%     USS  H<  nUU;  d  M  U" U5      (       a  M  UR                  U5        UR                  U5        M>     UR                  US   5        U(       a  GM  U(       Gan  [+        S[        U5      S5       GHS  nUS-  nUR-                  5         U R                  R.                  (       aA  SnUUSR1                  [3        [(        U5      5      4-  nU R                  R'                  U5        UR                  5        nUUUS-    nUbF  US	==   [        U5      -  ss'   US
==   [        U5      -  ss'   US==   S-  ss'   US==   S-  ss'   UR	                  SSU05      R                  5       nSSS5        U HL  nU R                  R'                  S[)        US   5      [)        US   5      4-  5        UR                  U5        MN     GMV     U(       a  GM  U(       Ga  / nUS-  nUR-                  5         UR                  5        nUbF  US	==   [        U5      -  ss'   US==   [        U5      -  ss'   US==   S-  ss'   US==   S-  ss'   UR	                  SSU05      R                  5       nSSS5        [5        UW5       GH  u  nnUR                  US   5        US   nSnU H  nU R                  R'                  SU[        U5      [)        U5      4-  5        U" U5      (       a  US::  aJ  U R                  R'                  S [)        U5      -  5        UR                  U5        U
R                  U5        OEU R                  R'                  S![)        U5      [)        U5      4-  5        UR                  UU45          OUUS-  nnM     UnGM     U(       a  GM  U H>  nU" U5      (       d  M  [6        R8                  " [        S"5      [)        USS 5      -   5      e   [        U
5      n
XR                  /:X  aK  U(       a%  U R                  R;                  [        S#5      5        O[6        R<                  " [        S$5      5      eU R                  R'                  S%SR1                  U Vs/ s H  n[)        U5      PM     sn5      -   S&-   5        UR?                  5         U R                  R'                  S'U-  5        U
[        U5      U4$ ! , (       d  f       GN= f! , (       d  f       GN= f! , (       d  f       GN= f! , (       d  f       GN= fs  snf )(aV  Return a tuple (common, fetch, 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.
"fetch" is a list of roots of the nodes that would be incoming, to be
  supplied to changegroupsubset.
"heads" is either the supplied heads, or else the remote's heads.
s   headsNr   s   total-roundtripss   total-roundtrips-headsr   s   total-roundtrips-branchess   total-roundtrips-betweens   total-queriess   total-queries-branchess   total-queries-betweens   searching for changes
s	   searchings   queries)units   branchess   nodess   examining %s:%s
s   branch already found
s   found incomplete branch %s:%s
      s   found new changeset %s
   
   s   request %d: %s
    s   received %s:%s
s   betweens   pairss   narrowing %d:%d %s
s   found new branch changeset %s
s    narrowed branch search to %s:%s
s   already have changeset s!   warning: repository is unrelated
s   repository is unrelateds!   found new changesets starting at    
s   %d total queries
) 	changeloghasnodesetcommandexecutorcallcommandresulttipnullidaddlistuistatusr   appendmakeprogresslencollectionsdequepopleftdebugr   range	increment	debugflagjoinmapzipr   	RepoErrorwarnAbortcomplete)reporemoteheadsforceaudit	knownnodesearchfetchseen
seenbranchbaseeunknownhreqreqcntprogressbranchesrnpmsgsubsetb	newsearchbetweenlfis                                9/usr/lib/python3/dist-packages/mercurial/treediscovery.pyfindcommonincomingrK      s    &&IFEE5DJ5D##%MM(B/668E & %&!"+,'(./*+-.)*"#+,'(*+&'~~t{{*[[M!KK=4;;-e<<}b%'' 	GGNN1/01G||NN1HHQK	  Dz2tE{**
g,CFww##AlO!J-#HH 
			!Q"#s7|3#+,G<,%&!+&./14/==x.ABIIK 
" )G
!Att|GGMM.%!+uQqT{1KKLtt{{"j781)AaD//6QqT{E!A$K01 a!f%q!Q4t#!E(9 19QqT??&AE!A$K&OP		!A$qV$Q<< HHQK $ 1QA|IaLL
   HHQqTN? gB 1c!fb)!""$77$$-CFDIIc%m$<==CGGMM#&++-q1r6]F(./3v;>/78CKG812a72:;q@; }}#$f 
 fh  . "AGGMM+uQqT{E!A$K.HH NN1%	 "+ *I '@ 	!##% &'3v;6'./3v;>/)*a/*12a72mmJ60BCJJLG & (DAqHHQqTN!AA5CFE!H8MMNQ<<Av>qI 		!@$Qxq23 "((!Q0!a%11! " F+ ) &J Q<<//!$>"?%"1,"NOO  :D}GGLL@AB++a :;<<GGMM,
))u-u!U1Xu-
.	/
	 GGMM'&01ee##U &%P 
"	!h .-4 &%Z .s9   !d5A,d6A4d0A,e+e
d
d-0
d?	
e)NFN)

__future__r   r   i18nr   noder    r   rK        rJ   <module>rR      s    #   
|$rQ   