-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/hgext/largefiles/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyc

ó
Ì\,Tc@s…dZddlZddlZddlmZmZmZmZddl	m
Z
ddlmZddlZddl
Z
d„ZdS(s,setup for largefiles repositories: reposetupiÿÿÿÿN(terrortmanifesttmatchtutil(t_(t	localrepocsš|jƒrdSnd|jf‡‡fd†ƒY‰ˆ|_‡fd†}|jjd|ƒd„}ˆjdd|dƒˆjdd|dƒdS(	Nt
lfilesrepoc
s³eZeZ‡fd†Z‡fd†Zejdd	d	eeee‡‡fd†ƒZ	‡fd†Z
dd	d	d	eei‡‡fd†Zed	e‡fd†Zd„Z
RS(
cstˆ|ƒj||ŽS(N(tsupertstatus(tselftargstkwargs(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytstatus_nolfilesscsrtˆ|ƒj|ƒ}|jrndtjf‡fd†ƒY‰d|jf‡‡fd†ƒY‰ˆ|_n|S(NtlfilesmanifestdictcseZ‡fd†ZRS(cs;tˆ|ƒj|ƒrtStˆ|ƒjtj|ƒƒS(N(Rt__contains__tTruetlfutiltstandin(R	tfilename(R
(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR's
(t__name__t
__module__R((R
(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR
&st	lfilesctxcs>eZ‡fd†Z‡‡fd†Zdd‡fd†ZRS(cs;tˆ|ƒjƒ}g|D]}tj|ƒp4|^qS(N(RtfilesRtsplitstandin(R	t	filenamestf(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR.scs"tˆ|ƒjƒ}ˆ|_|S(N(RRt	__class__(R	tman1(RR
(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR1s	csÜyL|dk	r0tˆ|ƒj|||ƒ}ntˆ|ƒj||ƒ}Wn‰tjk
r×|dk	r•tˆ|ƒjtj|ƒ||ƒ}n$tˆ|ƒjtj|ƒ|ƒ}|j‰‡fd†|_nX|S(NcsˆƒdS(Nt(((tolddata(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyt<lambda>Gs(tNoneRtfilectxRtLookupErrorRRtdata(R	tpathtfileidtfilelogtresult(R(Rs>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR 5s	N(RRRRRR ((RR
(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR-s(Rt__getitem__tlfstatusRtmanifestdictR(R	tchangeidtctx(R(RR
s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR'#s	"t.c)sØ|||}}	}
ˆjsEtˆˆƒj|||||	|
|ƒStˆ_ˆ|}ˆ|}|jƒdk‰ˆo‡|ˆdk}
d„}|dkr½tjˆjˆj	ƒƒ}nd}z´yˆj
tƒ}Wntjk
rïnXt
jˆˆƒ}|jƒrg|jƒrgxI|D]}||ƒr"Pq"q"Wtˆˆƒj|||||	|
|ƒSn‡‡fd†}tj|ƒ}||jƒ|_tˆˆƒj|||||||ƒ}ˆr(‡fd†}g|jD]}||ƒrã|^qã|_|j|gt|	tƒ}|\}}}}}}}}|
rÚxD|D]‰}t
j|ƒ}||kr{|j|ƒqJ||jƒjƒt
jˆj|ƒƒkr¹|j|ƒqJ|j|ƒ|j|ƒqJWn°||||} ggg}}}x‡| D]}t
j|ƒ}|||ƒry||jƒjƒt
jˆj|ƒƒkri|j|ƒq†|j|ƒq|j|ƒqWxf|jƒD]X}t
j|ƒs²q—nt
j|ƒ}||ƒsÓq—n||kr—|j|ƒq—q—Wt|ƒ}g|D]}|ˆjkr|^q}g|dD]}||kr2|^q2|d<t|j ƒ}!t|dƒj!|!ƒ|d<t|dƒj!|!ƒ|d<g|D].}"g|"D]}#t
j|#ƒs±|#^q±^q¤}$||||gg|f}!gt"|$|!ƒD]\}%}&t#|%|&ƒ^q}n;d„}'g|D]%}(g|(D]}|'|ƒ^qE^q8}|rv|j$ƒnWd|r|j%ƒnX|
s¡g|d<n|s´g|d<n|	sÇg|d	<nt&ˆ_|SdS(
NR,cSsKy2|jƒdkr%||jƒkS||tSWntk
rFtSXdS(N(trevRRRtKeyErrortFalse(tfileR+((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytinctxas
csŽˆs
|Sg}ˆj}xn|D]f}tj|ƒ}||krQ|j|ƒq ||jƒkry|j||fƒq |j|ƒq W|S(N(tdirstateRRtappendtdirstextend(RtnewfilesR2Rtsf(R	tworking(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyt
tostandins†s	
cs4tj|ƒ}ˆj}||kp3||jƒkS(N(RRR2R4(RR7R2(R	(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytsfindirstatežs	iiicSs tj|ƒrtj|ƒS|S(N(Rt	isstandinR(R((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyttonameìs
i('R(RRR/R-Rtmatch_talwaystroottgetcwdtwlockRt	LockErrorRtopenlfdirstateRtanypatstcopyt_filesRR3R"tstripthashfiletwjointnormalRR;RtlistR2tsett_mapt
differencetziptsortedtwritetreleaseR()R	tnode1tnode2Rtignoredtcleantunknowntlistsubrepostlistignoredt	listcleantlistunknowntctx1tctx2t
parentworkingR1RAt
lfdirstateRR9tmR&R:tstunsuretmodifiedtaddedtremovedtmissingt_unknownt_ignoredtlfileRttochecktlfilestfilelisttfntnormalstlist1tlist2R<titems(Rtui(R	R8s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyRRs¾		

		
	




8	2	/


	cs/tˆ|ƒj||Ž}tj||ƒ|S(N(Rt	commitctxRtcopyalltostore(R	R
Rtnode(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyRsstcs¯tˆ|ƒj}|jƒ}	zt|dtƒsEt|dtƒr›tj|j|dddtƒ|d|d|d|d|d	|d
|d|ƒ}
|
S|dksÁ|j	ƒr”|j
ƒr”tjˆ|ƒ}t
j|j|jƒƒ}|j|gtttƒ}
|
\}}}}}}}}||||}tj|ƒ‰xˆˆD]€}||krOtjj|jtj|ƒƒƒrÏtjj|j|ƒƒrÌtj|tj|ƒƒ|j|ƒqÌqÏqOqOW|d|d|d|d|d	|d
|d|ƒ}
|
dk	r†xq|D]f}||krtjj|jtj|ƒƒƒsltjj|j|ƒƒr|j|ƒqqqWn|jƒ|
Stj|ƒ‰|j|j
ƒˆƒ|_tj||ƒ}|jj |gttƒ‰ˆs"|d|d|d|d|d	|d
|d|ƒStjˆ|ƒ}xZˆD]R}tj!|ƒ}||dkr€tj||ƒ|j|ƒq;|j|ƒq;Wt"j"|ƒ}|j#‰|jt$ˆƒ7_g}xm|jD]b}tj|ƒ}|ˆksÎ|ˆkrqÎn|j%tj&ƒs#|tj&7}n|j'|ƒqÎW||_‡‡‡fd
†}||_#|d|d|d|d|d	|d
|d|ƒ}
|jƒ|
SWd|	j(ƒXdS(Nt_isrebasingt_istransplantingRltprintmessagettexttusertdateRtforceteditortextratrcs$ˆ|ƒr|ˆkS|ˆkSdS(N((R(Rktorigmatchfntstandins(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytmatchfn‡s
()RtcommitRAtgetattrR/t
lfcommandstupdatelfilesRrRRDRRRCR=R>R?R@Rt
listlfilestosR#texistsRIRt
updatestandinRJtdropRQt
_subdirlfsRFtcomposestandinmatcherR2twalkRRERƒRPtendswithtsepR3RR(R	RzR{R|RR}R~RtorigRAR&R_t
dirtymatchRaRbRcRdRet_missingRgRht_cleant
modifiedfilesRitsmatcherRtactualfilesRtfstandinRƒ(RRr(RkRR‚s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR„
sŒ
		


			
csŠ|jƒrbt|jƒ|jƒj}|rbtdƒdjt|ƒƒ}tj|ƒ‚qbnt	ˆ|ƒj
|d|d|d|ƒS(Ns:required features are not supported in the destination: %ss, R}trevst	newbranch(tlocalRLtrequirementst	supportedRtjoinRPRtAbortRtpush(R	tremoteR}RšR›Rftmsg(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR¡—s	!cSsŽg}g}g}x{|D]s}tj|dƒrTtjtdƒ|ddƒ‚ntjj|j|ƒƒr|j	|ƒq|j	|ƒqWxí|D]å}t
}|jj|ƒd}x@|D]8}	|jj|	ƒj
|ƒrÀ|j	|ƒt}PqÀqÀW|sfxa|D]V}
|jj|
ƒj
|ƒr	|j	|
ƒ|s_|j	tj|ƒƒt}q_q	q	Wn|s—|j	|ƒq—q—W||7}|S(sé
            Adjust matched file list
            If we pass a directory to commit whose only commitable files
            are largefiles, the core commit code aborts before finding
            the largefiles.
            So we do the following:
            For directories that only have largefiles as matches,
            we explicitly add the largefiles to the match list and remove
            the directory.
            In other cases, we leave the match list unmodified.
            t/s file "%s" is a largefile standinthints#commit the largefile itself instead(RR;RR RR‰R#tisdirRIR3R/R2t	normalizet
startswithRR(R	RRkR˜R4tregularsRt
matcheddirtdtmftlf((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR¢s<






N(RRR/R(RR'RtunfilteredmethodRRRsR„R¡R((RRr(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyRs/±‰csT|jrPtƒ‰‡fd†}tj||j|ƒtjˆ||ˆƒndS(Ncs
ˆj|ƒS(N(tadd(Rmtlfhash(ttoupload(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyRÝs(RfRLRtgetlfilestouploadR†tuploadlfiles(RœR¢toutgoingtaddfunc(Rr(R±s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytprepushoutgoinghookÚs
		t
largefilesc[sRd|jkrNtjd„|jjƒDƒƒrN|jjdƒ|jƒndS(NR·css&|]}tjd|dkVqdS(R¤iN(Rt	shortname(t.0R((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pys	<genexpr>äs(RRtanytstoret	datafilesR¯t_writerequirements(RrtrepoR((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytcheckrequireslfilesâsthooksschangegroup.lfiless
commit.lfiles(RœRtprepushoutgoinghooksR¯t	setconfig(RrR¾R¶R¿((RRrs>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyt	reposetups
"ÿ¿		(t__doc__RER‰t	mercurialRRRR=Rtmercurial.i18nRRR†RRÃ(((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyt<module>	s"

Copyright © 2017 || Recoded By Mr.Bumblebee