��Pc@sQddlmZmZddlmZddlZddlZded�Z dS(i�(tnullidtshort(t_NcCs�|jj}g}t�}t�}t�}t�} |sK|j�}n|jj�tkr�| jt�|tgkr�tgtgt|�fStgg|fS|jj t
d��g}
x7|D]/}||kr�
j|�q�| j|�q�W|
st| �gt|�fSt|
�}d}
tj
|j|
��}
x�rBg}x|
rW|
j�}|d|kr~qVn|jjdt|d�t|d�f�|dtkr�n�||kr�jjd�qVnb|drM|d|krM|jjdt|d�t|d�f�|j|dd!�|j|�n�d|kr�d|kr�d|kr�|d|kr�|jjd t|d��|j|d�nx4|dd
!D]"}||kr�| j|�q�q�WnxJ|dd
!D];}||kr||kr|j|�|j|�qqW|j|d�qVW|rG|
d7}
|jjt
d�|
dt
d
��|jjd|
djtt|��f�x�tdt|�d�D]f}x]|j|||d!�D]A}|jjdt|d�t|d�f�|
j|�q��WqGqGWxf|r�g}|
d7}
|jjt
d�|
dt
d
��x$t||j|��D]
\}}|j|d�|d}d}x�|D]�}|jjd|t|�t|�f�||kr�|dkrL|jjdt|��|j|�| j|�n9|jjdt|�t|�f�|j||f�Pn||d}}q�W|}q�WqFWx@|D]8}||kr�tjt
d�t|d
���q�q�Wt| �} | tgkrA|r)|jjt
d��qAtjt
d���n|jjddjg|D]}t|�^qZ�d�|jjt
d�d�|jjd|
�| t|�|fS(snReturn 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.
ssearching for changes
isexamining %s:%s
isbranch already found
sfound incomplete branch %s:%s
iisfound new changeset %s
it searchingtunittqueriessrequest %d: %s
t i
sreceived %s:%s
snarrowing %d:%d %s
sfound new branch changeset %s
s narrowed branch search to %s:%s
salready have changeset s!warning: repository is unrelated
srepository is unrelateds!found new changesets starting at s
s%d total queries
N(t changelogtnodemaptsettheadsttipRtaddtlisttuitstatusRtappendtutiltdequetbranchestpoplefttdebugRtprogresstjointmaptxrangetlentziptbetweenterrort RepoErrortwarntAborttNone(trepotremoteR
tforcetmtsearchtfetchtseent
seenbranchtbasetunknownthtreqtreqcnttrtntptbt newsearchtltfti((s;/sys/lib/python2.7/site-packages/mercurial/treediscovery.pytfindcommonincomings�
""
% !"
%%
)
1(
tnodeRRti18nRRRR!tFalseR7(((s;/sys/lib/python2.7/site-packages/mercurial/treediscovery.pyt<module>s
|