HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyc
ó
ÛXc@@swdZddlmZddlZddlmZddlmZmZm	Z
mZddlm
Z
mZd„ZdS(	s,setup for largefiles repositories: reposetupi(tabsolute_importN(t_(terrort	localrepotmatchtscmutili(t
lfcommandstlfutilc@s¸|jƒrdSnd|jf‡‡fd†ƒY‰ˆ|_tjg|_ˆjg|_‡fd†}|jjd|ƒd„}ˆj	dd|dƒˆj	dd|dƒdS(	Nt
lfilesrepoc
@s¶eZeZeZ‡fd†Z‡fd†Zej	dd	d	eeee‡‡fd†ƒZ‡fd†Zdd	d	d	eei‡fd†Z
ed	e‡fd†Zd„ZRS(
c@stˆ|ƒj||ŽS(N(tsupertstatus(tselftargstkwargs(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytstatus_nolfiles'sc@sPtˆ|ƒj|ƒ}|jrLd|jf‡fd†ƒY‰ˆ|_n|S(Nt	lfilesctxc@s;eZ‡fd†Z‡fd†Zdd‡fd†ZRS(c@s;tˆ|ƒjƒ}g|D]}tj|ƒp4|^qS(N(R	tfilesRtsplitstandin(Rt	filenamestf(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR2sc@sAtˆ|ƒjƒ}d|jf‡fd†ƒY‰ˆ|_|S(Ntlfilesmanifestc@seZ‡fd†ZRS(c@s1tˆ|ƒj}||ƒp0|tj|ƒƒS(N(R	t__contains__Rtstandin(Rtfilenametorig(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR8s(t__name__t
__module__R((R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR7s(R	tmanifestt	__class__(Rtman1(R(Rs>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR5s	c@s¾tˆ|ƒj}y4|dk	r6||||ƒ}n|||ƒ}Wnqtjk
r¹|dk	rƒ|tj|ƒ||ƒ}n|tj|ƒ|ƒ}|j‰‡fd†|_nX|S(Nc@sˆƒdS(Ns(((tolddata(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyt<lambda>Ns(R	tfilectxtNoneRtLookupErrorRRtdata(RtpathtfileidtfilelogRtresult(R(Rs>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR >s	N(RRRRR!R ((R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR1s	(R	t__getitem__tlfstatusR(Rtchangeidtctx(R(Rs>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR(.s
	t.c)@s#|||}}	}
tˆˆƒj}ˆjsK||||||	|
|ƒStˆ_ˆ|}ˆ|}
|
jƒdk‰ˆo|ˆdk}|dkrºtjˆjˆj	ƒƒ}nd}z6yˆj
tƒ}Wntjk
rìnXt
jˆˆƒ}|jƒsKx=|D]}||ƒrPqqW||||||	|
|ƒSn‡‡fd†}tj|ƒ}||jƒ|_||||||||ƒ}ˆr§‡fd†}g|jD]}||ƒr»|^q»|_|j|gt|	tƒ\}}|j|j|j|j|jf\}}}}}|rÖxÃ|D]’}t
j|ƒ}||krn|j|ƒq=||jƒjƒt
jˆj|ƒƒkr¬|j|ƒq=|	rÂ|j|ƒn|j|ƒq=Wn&||||}ggg}}}ˆjj}xÃ|D]»}t
j|ƒ}||kr½ˆj|ƒ} ||jƒjƒt
j| ƒks”|r¤d|j|ƒkt t
j!| ƒƒkr¤|j|ƒqÊ|	rÊ|j|ƒqÊq|j|ƒqWg|D]!}t
j|ƒ|krÕ|^qÕ}xs|j"t
j#ˆƒƒD]Y}t
j$|ƒ}||ƒs<qn||kr|j|ƒˆj%j&|dt'ƒqqWt(|ƒ}g|D]}|ˆjkr…|^q…}g|dD]}||kr±|^q±|d<t)|j*ƒ}!t)|dƒj+|!ƒ|d<t)|dƒj+|!ƒ|d<g|D].}"g|"D]}#t
j,|#ƒs0|#^q0^q#}$||||gg|f}%gt-|$|%ƒD]\}&}'t.|&|'ƒ^q‚}n;g|D].}(g|(D]}t
j$|ƒpÓ|^q»^q®}|rõ|j/ƒnWd|r|j0ƒnXt'ˆ_t1j|ŒS(	NR,c@sŽˆs
|Sg}ˆj}xn|D]f}tj|ƒ}||krQ|j|ƒq ||jƒkry|j||fƒq |j|ƒq W|S(N(tdirstateRRtappendtdirstextend(RtnewfilesR-Rtsf(Rtworking(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyt
tostandins„s	
c@s4tj|ƒ}ˆj}||kp3||jƒkS(N(RRR-R/(RR2R-(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytsfindirstateœs	txt
ignoremissingiii(2R	R
R)tFalsetrevR!tmatchmodtalwaystroottgetcwdtwlockRt	LockErrorRtopenlfdirstatetcopyt_filestmodifiedtaddedtremovedtdeletedtcleanRR.R#tstripthashfiletwjointnormalR-t
_checkexectflagstboolt
getexecutabletwalktgetstandinmatcherRtwvfst
unlinkpathtTruetlisttsett_mapt
differencet	isstandintziptsortedtwritetreleaseR()Rtnode1tnode2RtignoredRGtunknowntlistsubrepostlistignoredt	listcleantlistunknownRtctx1tctx2t
parentworkingR>t
lfdirstateRR4tmR'R5tunsuretsRCRDRERFtlfileRttocheckt	checkexectabslfiletlfilestfilelisttfntnormalsR)tlist1tlist2titems(Rtui(RR3s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR
Ys¾	
	



	3


!

8	28	c@sJtˆ|ƒj|||Ž}d|jf‡fd†ƒY‰ˆ|_|S(NRc@seZ‡fd†ZRS(c@s%tˆ|ƒj}tj|||ƒS(N(R	t
markcommittedR(RtnodeR(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyRy	s(RRRy((R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyRs(R	t	commitctxR(RR+RR
Rz(R(Rs>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR{s	tc@s|tˆ|ƒj}|jƒX|jd}	|	||ƒ}|d|d|d|d|d|d|d|ƒ}
|
SWdQXdS(	NiÿÿÿÿttexttusertdateRtforceteditortextra(R	tcommitR>t_lfcommithooks(RR}R~RRR€RR‚RtlfcommithookR'(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyRƒs

c@sŠ|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(tlocalRVtrequirementst	supportedRtjoinR[RtAbortR	tpush(RtremoteR€R†R‡tmissingtmsg(R(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyRs	!cS@s|g}g}g}xr|D]j}tj|dƒrTtjtdƒ|ddƒ‚n|jj|ƒrv|j|ƒq|j|ƒqWxä|D]Ü}t}|j	j
|ƒd}x@|D]8}	|j	j
|	ƒj|ƒr·|j|ƒt}Pq·q·W|sTxX|D]M}
|j	j
|
ƒj|ƒr|j|
ƒ|sM|jdƒt}qMqqWn|sŽ|j|ƒqŽqŽW||7}|S(sê
            Adjust matched file list
            If we pass a directory to commit whose only committable 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 insteadR,(
RRYRRŒRRRtisdirR.R8R-t	normalizet
startswithRT(RRRqtactualfilesR/tregularsRt
matcheddirtdtmftlf((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyt
_subdirlfs*s<







N(RRRTt_largefilesenabledR8R)RR(RtunfilteredmethodR!R
R{RƒRRœ((RRx(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyR"s+«

c@s{|j}|dkr$|jj}n|rwtƒ‰‡fd†}tj|j||ƒtj	ˆ|j|j
ˆƒndS(s4Push largefiles for pushop before pushing revisions.c@s
ˆj|ƒS(N(tadd(Rstlfhash(ttoupload(s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyRwsN(tlfrevsR!toutgoingRRVRtgetlfilestouploadtrepoRtuploadlfilesRŽ(tpushopR¢taddfunc(Rx(R¡s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytprepushoutgoinghookps		t
largefilesc[@sOd|jkrKtd„|jjƒDƒƒrK|jjdƒ|jƒndS(NRªcs@s&|]}tjd|dkVqdS(R‘iN(Rt	shortname(t.0R((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pys	<genexpr>s(R‰tanytstoret	datafilesRŸt_writerequirements(RxR¥R
((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pytcheckrequireslfiles}sthooksschangegroup.lfiless
commit.lfiles(
RˆRRtupdatestandinsbymatchR„R
t_lfstatuswriterstprepushoutgoinghooksRŸt	setconfig(RxR¥R©R±((RRxs>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyt	reposetups
"ÿD		(t__doc__t
__future__RRAtmercurial.i18nRt	mercurialRRRR:RR|RRR·(((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/reposetup.pyt<module>	s"