-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
Ì\,Tc@s‚ddlZddlZd„Zd„Zd„Zd„Zdd„Zd„Zd„Zd	„Z	d
„Z
d„Zd„ZdS(
iÿÿÿÿNcCs5tg|D]$}||kr
||kr
|^q
ƒS(s-Return list of elements in d1 not in d2 or d3(tsorted(td1td2td3td((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt_nonoverlapscCs'|jdƒ}|dkrdS|| S(Nt/iÿÿÿÿt(trfind(tfts((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt_dirnamesc
Csº|j}t|ƒ}|dkr*|}n|dkr?|}nid|6d|6}||g}tj|ƒt|ƒ}t}|}	x#|r«tj|ƒ}
|
|krÙg|jjƒD]}|j	|ƒ^q»}n|j
|
ƒ}x |D]˜}|dkrqïn||krL||
||<||r8|d7}ntj||ƒqï||rï||||
krïd||<|d8}t}qïqïW||
r‰|
}	|d8}q‰q‰W|s¶dS|	S(soFind the earliest revision that's an ancestor of a or b but not both,
    None if no such revision exists.
    iÿÿÿÿiiN(
t	changelogtlentNonetheapqtheapifytFalsetheappoptdirstatetparentstrevt
parentrevstheappushtTrue(
trepotatbtcltworkingtsidetvisittinterestingthascommonancestortlimittrtpR((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt
_findlimitsF			
	.






cCsË|jƒ}xy|jƒD]k\}}||krk|||krR||||<n||krk||=qkn||kr|||<qqWx<|jƒD].\}}||kr•||kr•||=q•q•W|S(schain two sets of copies a->b(tcopyt	iteritemstitems(tsrctdstRRtttktv((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt_chainNs
cCsYxR|jƒD]D}|j|jƒdƒ|jƒkr;|S|jƒ|kr
dSq
WdS(sˆreturn file context that is the ancestor of fctx present in ancestor
    manifest am, stopping after the first ancestor lower than limitN(t	ancestorstgettpathRtfilenodeR(tfctxtamR"R	((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt
_tracefilees
$cCsS|jj}|jƒjƒ}x.|jƒD] }||dkr+||=q+q+W|S(Ntanm(t_repoRtcopiesR&tkeys(RtdstcR,((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt_dirstatecopiesosc	Cs*d}|jƒdkrC|}|jƒ}||krCt|ƒSnt|j|jƒ|jƒƒ}|dkryd}n|jƒ}i}t|jƒjƒƒ}|j	|jƒjƒƒx=|D]5}t
||||ƒ}|rÃ|jƒ||<qÃqÃW|dk	r&t|||t|ƒƒ}n|S(s<find {dst@b: src@a} copy mapping where a is an ancestor of biÿÿÿÿN(
RRtp1R<R%R7tmanifesttsettiterkeystdifference_updateR5R1R.(	RRtwR"R4tcmtmissingR	tofctx((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt_forwardcopiesws(
!	
cCsXt||ƒ}i}x<t|jƒƒD](\}}||krFq(n|||<q(W|S(N(RFRR'(RRR	R#R,R-((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt_backwardrenamesœscCs„||ks|s|riS|j|ƒ}||krFt||ƒS||kr_t||ƒSt||t||ƒt||ƒƒS(s5find {dst@y: src@x} copy mapping for directed compare(tancestorRFRGR.(txtyR((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt
pathcopies©s

c&sèˆsˆsˆˆkr*iiiifSˆjƒdkrpˆjƒˆjjƒkrpˆjjƒiiifStˆˆjƒˆjƒƒ}|dkrªiiiifSˆjƒ}ˆjƒ}|jƒ}‡‡‡fd†}tj	|ƒ}	i}
i}i}i}
ˆj
jd|ƒt|||ƒ}t|||ƒ}|rhˆj
jddj
|ƒƒn|rŽˆj
jddj
|ƒƒnx0|D](}t|	||||||
|
|ƒ	q•Wx0|D](}t|	||||||
|
|ƒ	qÈWi}tƒ}tƒ}x¸|
jƒD]ª\}}t|ƒdksO|ˆksO|ˆkr¶|
|=|ˆkrÃ|ˆkrÃg|D]$}|ˆks“|ˆkru|^qu||<|j|ƒqÃq|j|ƒqWtg|D]$}||krÑ||krÑ|^qу}|r$ˆj
jddj
|ƒƒniii}}}xR|D]J}t|	||||||||ƒ	t|	||||||||ƒ	q?WxQ|jƒD]C\}}t|ƒdkrš|d	|dkrš||
|d	<qšqšW|rˆj
jrˆj
jd
ƒx‰t|ƒD]x}d}||
kr5|d7}n||krN|d
7}n||krg|d7}nˆj
jd||||fƒqWn~|s¨|
||
|fSˆj
jdƒˆjƒˆjƒ}}|jdƒ|jdƒtƒ}i}xÓ|jƒD]Å\} }!t|!ƒt| ƒ}"}#|"|kr>qq|"|krf|#|krf|j|"ƒq|"|krŽ|#|krŽ|j|"ƒq|"|krº||"|#krº|j|"ƒq|#d||"d<qWx$|D]}$|$|kr×||$=q×q×W~~~|s|
||
|fSx,|D]$}ˆj
jd|||fƒqWx||D]„}||krPxo|D]d}|j|ƒri|||t|ƒ}%|%|
krÉ|%||<ˆj
jd||%fƒnPqiqiWqPqPW|
||
|fS(s&
    Find moves and copies between context c1 and c2 that are relevant
    for merging.

    Returns four dicts: "copy", "movewithdir", "diverge", and
    "renamedelete".

    "copy" is a mapping from destination name -> source name,
    where source is in c1 and destination is in c2 or vice-versa.

    "movewithdir" is a mapping from source name -> destination name,
    where the file at source present in one context but not the other
    needs to be moved to destination by the merge process, because the
    other context moved the directory it is in.

    "diverge" is a mapping of source name -> list of destination names
    for divergent renames.

    "renamedelete" is a mapping of source name -> list of destination
    names for files deleted in c1 that were renamed in c2 or vice-versa.
    csQt|ƒdkr>ˆjƒdkr1ˆj|ƒSˆj|ƒSˆj|d|ƒS(Nitfileid(R
RRtfilectx(R	tn(tc1tc2R(s4/usr/lib/python2.7/dist-packages/mercurial/copies.pytmakectxÚs


s&  searching for copies back to rev %d
s"  unmatched files in local:
   %s
s
   s"  unmatched files in other:
   %s
is%  unmatched files new in both:
   %s
iisK  all copies found (* = to merge, ! = divergent, % = renamed and deleted):
Rt*t!t%s   src: '%s' -> dst: '%s' %s
s!  checking for directory renames
Rs)   discovered dir src: '%s' -> dst: '%s'
s'   pending file src: '%s' -> dst: '%s'
N(tnodeRRR=R8R%RR>tutiltlrucachefunctuitdebugRtjointcheckcopiesR?R(R
tupdateRt	debugflagtdirstaddpathR'Rtaddt
startswith(&RRORPtcaR"tm1tm2tmaRQtctxR&tmovewithdirtfullcopytdivergetu1tu2R	trenamedeletet
renamedelete2tdiverge2toftflRtbothnewtbothdiverget_copyt	_fullcopytnoteRRtinvalidtdirmoveR*R)tdsrctddsttitdf((RORPRs4/usr/lib/python2.7/dist-packages/mercurial/copies.pytmergecopies´sÌ-
&
&		*57
"&&




	
	


c	Cs]|jƒ}	d„}
d}t|gƒ}x||||ƒjƒD]é}
|
jƒ}|
jƒ}||kr„||krDPqDqDn|j|ƒ|||<||kr­qDn|||	j|ƒkrÊPn||||ƒ}|
|
||jƒƒ}|rD||ks||jƒkrD|||<d}PqDqDW||	krY|j|gƒj	|ƒndS(sÉ
    check possible copies of f from m1 to m2

    ctx = function accepting (filename, node) that returns a filectx.
    f = the filename to check
    m1 = the source manifest
    m2 = the destination manifest
    ca = the changectx of the common ancestor
    limit = the rev number to not search beyond
    diverge = record all diverges in this dict
    copy = record all non-divergent copies in this dict
    fullcopy = record all copies in this dict
    cSs)||kr|S|jƒ|jƒ}}yç|jƒ|jƒ}}|dkr`|jƒ}n|dkr{|jƒ}nx‘tr|jƒ|jƒ}}||kr¸|jƒ}q~||krÓ|jƒ}q~||krã|S||ks||ks||kr~tSq~WWntk
r$tSXdS(N(R/RRtnextRRt
StopIteration(tf1tf2R"tg1tg2tf1rtf2r((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt_relatedns*	$
N(
R>RR?R/RR1R`R0t
setdefaulttappend(RfR	RcRdRbR"RiR&RhReR…RotseentoctocrRPtcr((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyR[]s2	 

$
(
RVRRRR%R.R5R<RFRGRKR|R[(((s4/usr/lib/python2.7/dist-packages/mercurial/copies.pyt<module>s			9	
		%	
		©

Copyright © 2017 || Recoded By Mr.Bumblebee