
    	^c                     :    d dl Z ddlmZ ddlmZ ddlmZ ddZdS )	    N   )_short)errorFc           
         | j         j        }g }t                      }t                      }t                      }	t                      }
|sT|                                5 }|                    di                                           }ddd           n# 1 swxY w Y   |#d|d<   d|d<   d|d<   d|d<   d|d	<   d|d
<   d|d<   | j                                         | j        k    rO|
                    | j                   || j        gk    r| j        g| j        gt          |          fS | j        gg |fS | j
                            t          d                     g }|D ]8} ||          s|                    |           #|
                    |           9|st          |
          g t          |          fS t          |          }d}| j
                            t          d          t          d                    }|                                5 }|Z|d	xx         t          |          z  cc<   |d
xx         t          |          z  cc<   |dxx         dz  cc<   |dxx         dz  cc<   |                    dd|i                                          }ddd           n# 1 swxY w Y   t!          j        |          }|rg }|r9|                                }|d         |v r"| j
                            dt)          |d                   t)          |d                   fz             |d         | j        k    rn||	v r| j
                            d           |d         r ||d                   rx| j
                            dt)          |d                   t)          |d                   fz             |                    |dd                    |	                    |           n|d         |vr|d         |vr ||d                   r\ ||d                   rK| j
                            dt)          |d                   z             |                    |d                    |dd         D ]"} ||          r|
                    |           #|dd         D ];}||vr5 ||          s*|                    |           |                    |           <|                    |d                    |9|rt+          dt          |          d          D ]}|dz  }|                                 | j
        j        rId}||d                    t3          t(          |                    fz  }| j
                            |           |                                5 }|||dz            }|Z|d	xx         t          |          z  cc<   |d
xx         t          |          z  cc<   |dxx         dz  cc<   |dxx         dz  cc<   |                    dd|i                                          }ddd           n# 1 swxY w Y   |D ]\}| j
                            dt)          |d                   t)          |d                   fz             |                    |           ]||rg }|dz  }|                                 |                                5 }|Z|d	xx         t          |          z  cc<   |dxx         t          |          z  cc<   |dxx         dz  cc<   |dxx         dz  cc<   |                    dd|i                                          }ddd           n# 1 swxY w Y   t5          ||          D ]+\  }}|                    |d                    |d         }d}|D ]}| j
                            d|t          |          t)          |          fz              ||          r|dk    rU| j
                            d t)          |          z             |                    |           |
                    |           nP| j
                            d!t)          |          t)          |          fz             |                    ||f            n||dz  }}|}-||D ]F} ||          r9t7          j        t          d"          t)          |dd                   z             Gt          |
          }
|
| j        gk    rK|r(| j
                            t          d#                     n!t7          j        t          d$                    | j
                            d%d                    d& |D                       z   d'z              |                                 | j
                            d(|z             |
t          |          |fS ))an  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 c                 ,    g | ]}t          |          S  r   ).0fs     9/usr/lib/python3/dist-packages/mercurial/treediscovery.py
<listcomp>z&findcommonincoming.<locals>.<listcomp>   s    ---!U1XX---       
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lr   is                                r   findcommonincomingrP      s    &IFEEE55DJ55D 9##%% 	9MM(B//6688E	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 %&!"+,'(./*+-.)*"#+,'(*+&'~t{**T[M!!K=4;-e<<}b%'' 	GNN1/00111G  y|| 	NN1HHQKKKK +Dzz2tE{{**
g,,CFw##AlOO!J--#HHH 
			!	! LQ"###s7||3###+,,,G<,,,%&&&!+&&&.///14///==x.ABBIIKKL L L L L L L L L L L L L L L ))G
 =& 	!!Att||GMM.%!++uQqT{{1KKLLLtt{""j78881 #))AaD// #6QqT{{E!A$KK01   a!f%%%q!!!!Q4t##!E(9(9 y1 (99QqT?? (&AE!A$KK&OPPP		!A$qsV ( ($9Q<< ( HHQKKK1Q3 # #A||IIaLL|


HHQqTNNN?  	B  	&1c!ffb)) & &!""$$$7$ '-CFDIIc%mm$<$<==CGMM#&&&++-- q1r6z]F(.///3v;;>///7888CKKG8881222a7222:;;;q@;;; }}#$f   
 fhh                " & &AGMM+uQqT{{E!A$KK.HH   NN1%%%%	&s  =&@  "	!##%% 	M &'''3v;;6'''.///3v;;>///)***a/***1222a7222mmJ60BCCJJLLG	M 	M 	M 	M 	M 	M 	M 	M 	M 	M 	M 	M 	M 	M 	M (( 	 	DAqHHQqTNNN!AA    5CFFE!HH8MMNNN9Q<< Avv>qI   		!@$Qxxq23   "((!Q000E!a%1FFE  "J  P P9Q<< 	P/!$>"?"?%"1",,"NOOO	P ::D} 	=GLL@AABBBB+a :;;<<<GMM,
))--u---
.
.	/
	   GMM'&0111ee##sK   )BBBBJ&&J*-J*,BYY	Y	-B^  ^^)NFN)r&   i18nr   noder    r   rP   r   r   r   <module>rT      sy                        
|$ |$ |$ |$ |$ |$r   