File: //usr/lib64/python2.7/site-packages/mercurial/discovery.pyc
�
1�3\c @@ s� d d l m Z d d l Z d d l m Z d d l m Z m Z m Z d d l m
Z
m Z m Z m
Z
m Z m Z m Z m Z d e d d � Z d e f d � � YZ d e d e d
� Z d � Z e d � Z d
� Z d � Z d � Z d � Z d S( i ( t absolute_importNi ( t _( t hext nullidt short( t bookmarkst branchmapt errort phasest scmutilt setdiscoveryt
treediscoveryt utilc @ s� | j d � s% t j | | | | � S| rc | j j � t � f d � | D� � rc | t | f Sn t j | j | | d | d | �} | \ } } } t
| � | | p� t
| � f S( s� 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 (and
won't appears 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.
t getbundlec 3@ s | ] } � | � Vq d S( N( ( t .0t h( t knownnode( s9 /usr/lib64/python2.7/site-packages/mercurial/discovery.pys <genexpr>9 s t abortwhenunrelatedt ancestorsof( t capableR t findcommonincomingt changelogt hasnodet allt FalseR
t findcommonheadst uit list( t repot remotet headst forceR t rest commont anyinct srvheads( ( R s9 /usr/lib64/python2.7/site-packages/mercurial/discovery.pyR s t outgoingc B@ sM e Z d Z d d d d � Z d � Z e j d � � Z e j d � � Z RS( s Represents the set of nodes present in a local repo but not in a
(possibly) remote one.
Members:
missing is a list of all nodes present in local but not in remote.
common is a list of all nodes shared between the two repos.
excluded is the list of missing changeset that shouldn't be sent remotely.
missingheads is the list of heads of missing.
commonheads is the list of heads of common.
The sets are computed on demand from the heads, unless provided upfront
by discovery.c
C@ s/ d | | f k s t � | j } | d k r<