-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/discovery.pyc

ó
Ì\,Tc@sßddlmZmZddlmZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZde
d„Zdefd„ƒYZde
de
d„Zd„Ze
d	„Ze
e
gd
„ZdS(iÿÿÿÿ(tnullidtshort(t_NcCsÇ|jdƒs%tj||||ƒS|rzt}|jj}x$|D]}||ƒsDt}PqDqDW|rz|t|fSntj|j	||d|ƒ}|\}}	}
t
|ƒ|	|pÃt
|
ƒfS(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	getbundletabortwhenunrelated(tcapablet
treediscoverytfindcommonincomingtTruet	changelogthasnodetFalsetsetdiscoverytfindcommonheadstuitlist(trepotremotetheadstforcetallknownt	knownnodethtrestcommontanyinctsrvheads((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyR
s

toutgoingcBsDeZdZd„Zd„Zejd„ƒZejd„ƒZRS(sRepresents 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.cCs:||_||_||_d|_d|_g|_dS(N(tcommonheadstmissingheadst_revlogtNonet_commont_missingtexcluded(tselftrevlogRR((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt__init__As					cCs1|jj|j|jƒ}|\|_|_dS(N(RtfindcommonmissingRRR R!(R#tsets((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt_computecommonmissingIscCs#|jdkr|jƒn|jS(N(R RR((R#((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyRNs
cCs#|jdkr|jƒn|jS(N(R!RR((R#((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pytmissingTs
(	t__name__t
__module__t__doc__R%R(tutilt
propertycacheRR)(((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyR2s

		csEt|jddƒ}|dkr9t||d|ƒ}n|\|_}}|jjtjpd|j	}	|	s…|p||j
ƒ|_n+|dkr×|jdƒj
ƒ|_g|j
dƒD]}
|
jƒ^q¹|_nÙ|jj|j|ƒ}|\|_}g|_}
g|_}xV|D]N}||}
|
jƒtjksP|
jƒr`|j|ƒq|
j|ƒqWt|
ƒt|ƒkr’|}ntj|||ƒ}||_|rA|jƒ|j‰t
‡fd†|jDƒƒ}t
ˆj|ƒƒ||_t
|jƒ}g|jD]}||kr|^q|_n|S(sOReturn 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.Rtservedssecret() or extinct()c3s|]}ˆj|ƒVqdS(N(trev(t.0tn(tcl(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>sN(RR	RRRt_phasecachet
phaserootstphasestsecrettobsstoreRRtfilteredtsettnodeR"R&R R!tphasetextincttappendtlentnewheadsR(t	ancestors(Rtothert	onlyheadsRt	commoninctportabletogt_anyt_hdst
mayexcludetctxR't
allmissingR)R"R;RtmissingrevsRR((R3s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pytfindcommonoutgoingZs>.



!		
	.csñˆj}i}t‡fd†|jDƒƒ}|jƒ}|t|ƒ}|j|ƒtƒ}x•|jƒjƒD]\}	}
|j|	ƒg}g}|j}
x7|
D]/}|
|ƒrÊ|j|ƒq¨|j|ƒq¨W|t	|ƒ|f||	<qsWt	‡fd†|jDƒƒ}tƒ}xI|D]A}|j
ƒ}	|j|	ƒ|	|kr'dggf||	<q'q'Wx||D]
}	||	=qwWtjd„|jƒDƒƒ}|j
ˆd„|Dƒƒx)|jƒD]\}	}|||	d(qÎW|S(s£compute a summary of branch and heads status before and after push

    return {'branch': ([remoteheads], [newheads], [unsyncedheads])} mapping

    - branch: the branch name
    - remoteheads: the list of remote heads known locally
                   None if the branch is new
    - newheads: the new remote heads (known locally) with outgoing pushed
    - unsyncedheads: the list of remote heads unknown locally.
    c3s|]}ˆ|jƒVqdS(N(tbranch(R1R2(R(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>¤sc3s|]}ˆ|VqdS(N((R1R2(R(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>·scss5|]+\}}|ddk	r||dfVqdS(iiN(R(R1RNR((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>Ås	css|]}|jƒVqdS(N(R0(R1RJ((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>ÈsiN(R	R:R)t	branchmaptdifference_updatet	iteritemstaddR
R>RRNRtbranchcachetupdate(RRRR3theadssumtbranchest	remotemaptnewbranchestremotebranchesRNRtknowntunsyncedRRt
missingctxttouchedbranchesRJtnewmapR@((Rs7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt
_headssummary–s@	
	
	
	

csˆ|jj‰t‡fd†|Dƒƒ}|jd||jƒ}td„|Dƒƒ}|rktdgƒpqtƒ}i|||fd6S(s;Compute branchmapsummary for repo without branchmap supportc3s!|]}ˆ|ƒr|VqdS(N((R1R(R(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>Ôssheads(%ln + %ln)css|]}|jƒVqdS(N(R;(R1tc((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>ÛsN(R	R
R:R)RR(RtremoteheadsRtinctoldheadstrR@R[((Rs7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt_oldheadssummaryÍsc!s|tgkrdS|jdƒr7t|||ƒ}nt||||ƒ}g|jƒD]"\}}	|	ddkrY|^qY}
|
rË|rËdjt|
ƒƒ}tj	t
dƒ|dt
dƒƒ‚n|j}|jdƒ}
t
ƒ}x˜|D]}|
j|ƒ}|r]||kr]||||}}tj|||ƒrƒ|j|jƒƒqƒqó||kró|j||jƒƒqóqóWd}t
|jƒ}t
d	„|j
d
|jƒDƒƒ}|j|ƒxt|jƒƒD]\}}	|	\}}}t
|ƒ}|dkr t
ƒ}nt
|ƒ}|j|ƒ|j|ƒd}t
ƒ‰|jr	t
ƒ}x¥|D]”}||kr©||jƒtjkr©|j|ƒqnxVtj|j|gƒD]/}||krÂ||krˆj|ƒPqÂqÂW|j|ƒqnWn|}t‡fd†|Dƒƒ}|r*d|krFd}	nst|ƒdksd|jjr€d
jd„|Dƒƒ}	n9d
jd„|d Dƒƒd
t
dƒt|ƒd}	|	dkrÞ|jjt
dƒƒq*|dkr|jjt
dƒ|	ƒq*|jjt
dƒ||	fƒn|dkr…t|ƒdkr´t |ƒ}|dkr‚t
dƒ|}t
dƒ}q‚q´n/t|ƒt|ƒkr´t|||ƒ}n|rá|dkr||dkrõt
dƒt!|dƒ|f}nc||djƒr>t
dƒt!|dƒ||djƒdf}nt
dƒt!|dƒ}|rmt
dƒ}q|t
dƒ}n|dkr¡|jj"t
dƒƒn|jj"t
dƒ|ƒx+|D] } |jj"dt!| ƒƒqÂWqáqáW|rtj	|d|ƒ‚ndS( skCheck that a push won't add any outgoing head

    raise Abort error and display ui message as needed.
    NROis, s%push creates new remote branches: %s!thints8use 'hg push --new-branch' to create new remote branchest	bookmarkscss|]}|jƒVqdS(N(R;(R1R`((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>ss%ldc3s!|]}|ˆkr|VqdS(N((R1R(tdiscardedheads(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>;sit css|]}t|ƒVqdS(N(R(R1R((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>Ascss|]}t|ƒVqdS(N(R(R1R((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>Css
and %s otherss,remote has heads that are not known locally
s0remote has heads that are not known locally: %s
s?remote has heads on branch '%s' that are not known locally: %s
is0push creates new branch '%s' with multiple headss?merge or see "hg help push" for details about pushing new headstdefaults/push creates new remote head %s on branch '%s'!s3push creates new remote head %s with bookmark '%s'!s push creates new remote head %s!sHpull and merge or see "hg help push" for details about pushing new headssnew remote heads:
s!new remote heads on branch '%s':
s %s
(sdefaultN(#RRR_ReRQRtjointsortedR-tAbortRt
_bookmarkstlistkeysR:tgetRgt	validdestRRR;R)RRTR8R<R6tpublictobsoletet
allsuccessorsR?RtverbosetstatusRRtnote(!RRRRat	newbranchRbtnewbookmarksRURNRRXtbranchnamestlocalbookmarkstremotebookmarkstbookmarkedheadstbmtrnodetlctxtrctxterrorRKtallfuturecommonR@t
unsyncedheadstcandidate_newhstoldhstdhstnewhstnhtsucR[RfR((Rhs7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt
checkheadsàs¶
		
%


			
%
	9			,	
%(R;RRti18nRR-RRR6RsRgRORRRtobjectRRMR_ReR‹(((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt<module>sH%(;	7

Copyright © 2017 || Recoded By Mr.Bumblebee