File: //usr/lib/python2.7/dist-packages/mercurial/discovery.pyc
σ
ΫXc @@ sΥ d d l m Z d d l m Z d d l 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 Z d e f d YZ d e d e d Z d
Z e d Z d Z d
Z d S( i ( t absolute_importi ( t _( t nullidt short( t bookmarkst branchmapt errort obsoletet phasest setdiscoveryt
treediscoveryt utilc C@ sΗ | j d s% t j | | | | S| rz t } | j j } x$ | D] } | | sD t } PqD qD W| rz | t | f Sn t j | j | | 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.
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 getbundlet abortwhenunrelated( t capableR
t findcommonincomingt Truet changelogt hasnodet FalseR t findcommonheadst uit list( t repot remotet headst forcet allknownt knownnodet ht rest commont anyinct srvheads( ( s7 /usr/lib/python2.7/dist-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<