-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
Ì\,Tc@sJdZddlmZddlmZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZdejfd„ƒYZdeejfd„ƒYZd	eejfd
„ƒYZdee
j
fd„ƒYZd
e
jfd„ƒYZde
jfd„ƒYZd„ZdS(s~Repository class for "in-memory pull" of one local repository to another,
allowing operations like diff and log with revsets.
iÿÿÿÿ(tnullid(t_NtunionrevlogcBskeZd„Zd„Zd„Zd„Zd„Zd„Zd
d
d
d„Z	d„Z
d„Zd	„ZRS(c	Cs†tj|ƒ}tjj|||ƒ||_t|ƒ}|d|_tƒ|_x,|jD]!}|jj	|}|\}}	}
}}}
}}|dkr¸||ks¯t‚|}n||ƒ}||jkrð|jj
|j|ƒq]n|jj|
ƒ}|jj|ƒ}dddd||j|ƒ|j|ƒ|f}|j	jd|ƒ||j|<|jj
|ƒ|d7}q]WdS(Niiÿÿÿÿ(tscmutiltreadonlyvfstrevlogt__init__trevlog2tlent
repotiprevtsett
bundlerevstindextNonetAssertionErrortnodemaptaddtnodetrevtinsert(tselftopenert	indexfileRt
linkmappertntrev2Rt_startt_csizet_rsizet_basetlinkrevtp1revtp2revRtlinktp1nodetp2nodete((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRs0	
	$
cCs;||jkr"tjj||ƒS|jj|j|ƒƒS(N(R	Rt_chunkRR(RR((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR%=scCs½||jkr[||jkr[|jj|jj|j|ƒƒ|jj|j|ƒƒƒS||jkr‰||jkr‰|j||ƒStj|j|j|ƒƒ|j|j|ƒƒƒS(s1return or calculate a delta between two revisions(	R	RtrevdiffRRtbaserevdifftmdiffttextdifftrevision(Rtrev1R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR&Bs	cCs•t|tƒr'|}|j|ƒ}n|}|j|ƒ}|tkrLdS||jkr‚|jj|ƒ}|||f|_n|j	|ƒ}|S(sTreturn an uncompressed revision of a given node or revision
        number.
        t(
t
isinstancetintRRRR	RR*t_cachetbaserevision(Rt	nodeorrevRRttext((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR*NscCstjj||ƒS(N(RR*(RR1((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR0dscCstjj|||ƒS(N(RR&(RR+R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR'jscCs
t‚dS(N(tNotImplementedError(RR2ttransactionR!tp1tp2td((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pytaddrevisionnscCs
t‚dS(N(R3(RtrevsRR4((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pytaddgrouppscCs
t‚dS(N(R3(RRtminlink((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pytstriprscCs
t‚dS(N(R3(R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyt	checksizetsN(
t__name__t
__module__RR%R&R*R0R'R
R8R:R<R=(((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRs	(							tunionchangelogcBs#eZd„Zd„Zd„ZRS(cCsHtjj||ƒd}tj|ƒ}tj|||j||ƒdS(N(t	changelogRR
RR(RRtopener2Rt
changelog2((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRxs
cCstjj||ƒS(N(RAR*(RR1((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR0scCstjj|||ƒS(N(RAR&(RR+R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR'…s(R>R?RR0R'(((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR@ws		t
unionmanifestcBs#eZd„Zd„Zd„ZRS(cCsBtjj||ƒtj|ƒ}tj|||j||ƒdS(N(tmanifestRRR(RRRBRt	manifest2((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR‰scCstjj||ƒS(N(RER*(RR1((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR0scCstjj|||ƒS(N(RER&(RR+R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR'’s(R>R?RR0R'(((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRDˆs		tunionfilelogcBs,eZd„Zd„Zd„Zd„ZRS(cCsQtjj|||ƒtj||ƒ}tj|||j||ƒ||_dS(N(tfilelogRRRt_repo(RRtpathRBRtrepotfilelog2((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR–s
cCstjj||ƒS(N(RHR*(RR1((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR0scCstjj|||ƒS(N(RHR&(RR+R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR' scCs|jj|ƒdS(N(RItfile(Rtf((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyt_file£s(R>R?RR0R'RO(((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRG•s			t	unionpeercBseZd„ZRS(cCstS(N(tFalse(R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pytcanpush§s(R>R?RR(((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRP¦stunionrepositorycBsteZd„Zejd„ƒZd„Zejd„ƒZd„Zd„Z	d„Z
d„Zd„Zd	„Z
RS(
cCsmtjj|||ƒ|jjddtdƒdtj|ƒtj|ƒf|_tj||ƒ|_	dS(Ntphasestpublisht	unionreposunion:%s+%s(
t	localrepotlocalrepositoryRtuit	setconfigRQtutilt
expandpatht_urltrepo2(RRYRJtpath2((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyR«s
cCst|j|jjƒS(N(R@tsopenerR^(R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRA³scCs%|jjj|ƒ}|jj|ƒS(s?map from repo2 changelog rev to temporary rev in self.changelog(R^RARR(RRR((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyt_clrev·scCst|j|jj|jƒS(N(RDR`R^Ra(R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRE¼scCs|jS(N(R](R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyturlÁscCs"t|j||jj|j|ƒS(N(RGR`R^Ra(RRN((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRMÄscCs|jjƒdS(N(R^tclose(R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRcÈscCstS(N(RQ(R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pytcancopyËscCs
t|ƒS(N(RP(R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pytpeerÎscCs
tjƒS(N(tostgetcwd(R((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRgÑs(R>R?RRWtunfilteredpropertycacheRARaRERbRMRcRdReRg(((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyRSªs							cCsJ|rtjtdƒƒ‚n|jdddƒ}|sftjtjƒƒ}|dkrfd}qfn|rÇtjƒ}||krd}qÇtj	j
|dƒ}|j|ƒrÇ|t|ƒ}qÇn|jdƒr-|j
ddƒdj
ddƒ}t|ƒdkr||d	}}q:|\}}n
||}}t|||ƒS(
Ns"cannot create new union repositorytbundletmainreporootR,sunion:t:it+i(R[tAbortRtconfigtcmdutiltfindrepoRfRgR
RJtjoint
startswithRtsplitRS(RYRJtcreatet
parentpathtcwdtstrepopatht	repopath2((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pytinstanceÔs*	"
(t__doc__RRti18nRRfR[R(RoRRWRARERHRRR@RDRGt	localpeerRPRXRSRz(((s7/usr/lib/python2.7/dist-packages/mercurial/unionrepo.pyt<module>s0<c
*

Copyright © 2017 || Recoded By Mr.Bumblebee