-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
Ì\,Tc @ sß d d l m Z m Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l
Z
d d l Z d e
d „ Z d e f d „ ƒ YZ d e
d e
d „ Z d „ Z e
d „ Z e
e
g d
„ Z d S( iÿÿÿÿ( t nullidt short( t _Nc 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 capablet
treediscoveryt findcommonincomingt Truet changelogt hasnodet Falset setdiscoveryt 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 sD e Z d Z 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 | _ d | _ g | _ d S( N( t commonheadst missingheadst _revlogt Nonet _commont _missingt excluded( t selft revlogR R ( ( s7 /usr/lib/python2.7/dist-packages/mercurial/discovery.pyt __init__A s c C s1 | j j | j | j ƒ } | \ | _ | _ d S( N( R t findcommonmissingR R R R! ( R# t sets( ( s7 /usr/lib/python2.7/dist-packages/mercurial/discovery.pyt _computecommonmissingI s c C s# | j d k r | j ƒ n | j S( N( R R R( ( R# ( ( s7 /usr/lib/python2.7/dist-packages/mercurial/discovery.pyR N s
c C s# | j d k r | j ƒ n | j S( N( R! R R( ( R# ( ( s7 /usr/lib/python2.7/dist-packages/mercurial/discovery.pyt missingT s
( t __name__t
__module__t __doc__R% R( t utilt
propertycacheR R) ( ( ( s7 /usr/lib/python2.7/dist-packages/mercurial/discovery.pyR 2 s
c sE t | j d d ƒ } | d k r9 t | | d | ƒ} n | \ | _ } } | j j t j pd | j } | s… | p| | j
ƒ | _ n+| d k r× | j d ƒ j
ƒ | _ g | j
d ƒ D] }
|
j ƒ ^ q¹ | _ nÙ | j j | j | ƒ } | \ | _ } g | _ }
g | _ } xV | D]N } | | }
|
j ƒ t j k sP|
j ƒ r`| j | ƒ q|
j | ƒ qWt |
ƒ t | ƒ k r’| } n t j | | | ƒ } | | _ | rA| j ƒ | j ‰ t
‡ f d † | j Dƒ ƒ } t
ˆ j | ƒ ƒ | | _ t
| j ƒ } g | j D] } | | k r| ^ q| _ n | S( sO Return an outgoing instance to identify the nodes present in repo but
not in other.
If onlyheads is given, only nodes ancestral to nodes in onlyheads
(inclusive) are included. If you already know the local repo's heads,
passing them in onlyheads is faster than letting them be recomputed here.
If commoninc is given, it must be the result of a prior call to
findcommonincoming(repo, other, force) to avoid recomputing it here.
If portable is given, compute more conservative common and missingheads,
to make bundles created from the instance more portable.R t serveds secret() or extinct()c 3 s | ] } ˆ j | ƒ Vq d S( N( t rev( t .0t n( t cl( s7 /usr/lib/python2.7/dist-packages/mercurial/discovery.pys <genexpr>