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/lfcommands.pyc
ó
ÛXc@@sdZddlmZddlZddlZddlZddlZddlmZddl	m
Z
mZmZm
Z
mZmZmZmZmZmZddlmZmZdd	lmZmZejZiZe
jeƒZed
ddd
edƒdfd
deedƒfgedƒdedeƒd„ƒZ d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(eed„Z)dd„Z+dd „Z,dded!„Z-ed"d#d$ged%ƒfgej.ed&ƒƒd'd(„ƒZ/dS()s=High-level command function for lfconvert, plus the cmdtable.i(tabsolute_importN(t_(
tcmdutiltcommandstcontextterrorthgtlocktmatchtnodetscmutiltutili(tconvcmdtfilemapi(tlfutiltstorefactoryt	lfconverttstsizets9minimum size (MB) for files to be converted as largefilestSIZEs	to-normals/convert from a largefiles repo to a normal repos#hg lfconvert SOURCE DEST [FILE ...]tnorepot	inferrepoc@sð|drt}n*t}tj|t|jdƒddƒ}tj|ƒshtj	t
dƒ|ƒ‚ntj|ƒs“tj	t
dƒ|ƒ‚ntj||ƒ‰|jt
dƒ|ƒtj||dtƒ}t}d}	}
zȇfd†ˆj
jdˆjƒƒdDƒ}itjtj6}|rò|jƒ}	|jƒ}
tƒ}
tƒ}|s}|jtjd	dgƒ}n|r¤tjˆjd
t|ƒƒ}nd}i}xh|D]`}|jt
dƒ|jƒdt
d
ƒdˆdjƒƒtˆ||||
||||ƒ	q·W|jt
dƒdƒ|jjtj ƒr\|jj!tj ƒnxm|j"ƒD]_}|jj#|ƒr”|jj$|ƒny |jj%|jj&|ƒƒWqit'k
rÇqiXqiW|
r¥|j(j)dƒ|j*ƒq¥n³dt+j,f‡‡fd†ƒY‰dt-j.f‡‡fd†ƒY‰t/|ˆƒ\}}|dkrotj	t
dƒƒ‚nt-j.}ˆt-_.zt-j0|||ƒWd|t-_.Xt}Wd|rÒ|j1j2ƒt3|
|	ƒn|sët4j!|jƒnXdS(sMconvert a normal repository to a largefiles repository

    Convert repository SOURCE to a new repository DEST, identical to
    SOURCE except that certain files will be converted as largefiles:
    specifically, any file that matches any PATTERN *or* whose size is
    above the minimum size threshold is converted as a largefile. The
    size used to determine whether or not to track a file as a
    largefile is the size of the first version of the file. The
    minimum size can be specified either with --size or in
    configuration as ``largefiles.size``.

    After running this command you will need to make sure that
    largefiles is enabled anywhere you intend to push the new
    repository.

    Use --to-normal to convert largefiles back to normal files; after
    this, the DEST repository can be used without largefiles at all.t	to_normalRtdefaults %s is not a local Mercurial reposinitializing destination %s
tcreatec3@s|]}ˆ|VqdS(N((t.0tctx(trsrc(s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pys	<genexpr>csitpatternsRsconverting revisionstunitt	revisionsttotalttipt
largefilestlfsourcec@s)eZ‡fd†Z‡‡fd†ZRS(c@s3tˆ|ƒj||dƒd|jjtj<dS(Nt.(tsupert__init__tNonet
filemappertrenameRt	shortname(tselftuitsource(R#(s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR&sc@sµ|\}}tˆ|ƒj||ƒ}|jtjƒsJ|ddkrN|S|djƒ}tjˆ|ƒ}|dkržtj	t
dƒ||fƒ‚ntj|ƒ|dfS(Nis missing largefile for '%s' in %si(
R%tgetfilet
startswithRtshortnameslashR'tstriptfindfileRtAbortRRtreadfile(R+tnametrevtrealnametrealrevtfthashtpath(R#R(s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR.”s(t__name__t
__module__R&R.((R#R(s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR#st	converterc@seZ‡‡fd†ZRS(c@s5ˆ||ƒ}tˆ|ƒj|||||ƒdS(N(R%R&(R+R,R-tdestt
revmapfiletoptstsrc(R>R#(s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR&¦s(R<R=R&((R>R#(s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR>¥ss&all largefiles must be present locallyN(5tFalsetTrueRt
getminsizetgetR'RtislocalRR3Rt
repositorytstatust	changelogtnodesbetweentheadsR	tnullidtwlockRtsett
configlisttlongnametmatchmodRtroottlisttprogressR6t_lfconvert_addchangesettwvfstexistsR*trmtreetkeystisfiletunlinkt
removedirstdirnametOSErrortrequirementstaddt_writerequirementsR
tfilemap_sourceRR>tdownloadlfilestconverttdirstatetcleartreleasetshutil(R,RBR?tpatsRAttolfileRtrdsttsuccesstdstwlocktdstlocktctxstrevmaptlfilestnormalfilestmatchertlfiletohashRR9tfoundtmissingtorig((R>R#Rs?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR1s|
	$
		!
 
""		


c	@s§tˆˆƒ}	tˆ|	ƒ}
g}xN|
D]F}||kr||krt|ˆ||ƒ}
|ˆjƒkrëˆj|ƒ}|jƒ}|ož|d|k}|
|O}
d|jƒkrë|rßtjt	dƒ|ƒ‚nt
}
qën|
r|j|ƒq|j|ƒn||krd|jt
j|ƒƒ|ˆjƒkrqˆj|ƒ}d|jƒkr§|jƒ}|r§|d|kr§tjt	dƒ|ƒ‚q§ntjdƒ}|jˆ|jƒƒ|jƒ}|ˆksõˆ||kra|j|ˆ|jƒˆ|jƒƒdˆ|jƒk}t
j|t
j|ƒ||ƒ|ˆ|<qaqqq+|j|ƒq+W‡‡‡fd†}t||	ˆ||ˆƒdS(Nitls+renamed/copied largefile %s becomes symlinkslargefile %s becomes symlinkRtxc@sÄtj|ƒr­tj|ƒ}yˆj|ƒ}Wntjk
rHdSX|jƒ}|rqtj|dƒ}nt	j
||ˆ|dd|jƒkd|jƒk|ƒSt|ˆ|ˆƒSdS(Nis
RyRz(
Rt	isstandintsplitstandintfilectxRtLookupErrorR'trenamedtstandinRt
memfilectxtflagst_getnormalcontext(trepotmemctxR9tsrcfnametfctxR(RRuRq(s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyt
getfilectxös(t_convertparentst_getchangedfilest_islfiletmanifestR}RR‚RR3RRCRatappendRR€thashlibtsha1tupdatetdatat	hexdigesttwwritetwritestandint_commitcontext(RRlRRqRrRsRtRRutparentstfilestdstfilesR9tislfileR‡RtrenamedlfiletmR:t
executableRˆ((RRuRqs?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyRVÀsP

	
'c	C@s…tj|||jƒ|||jƒ|jƒ|jƒƒ}|j|ƒ}tj||ƒ|j	|ƒ|j
jƒ||jƒ<dS(N(
RR…tdescriptiontusertdatetextrat	commitctxRtcopyalltostoret
setparentsRJR!R	(RlR–RR˜RˆRqtmctxtret((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR•s$
cC@sÝt|jƒƒ}tj|krÙ|jƒ}|jƒdjƒ}|jƒdjƒ}|t|ƒt|ƒBt|ƒO}xY|D]N}|||j|dƒksÂ|||j|dƒkr„|j|ƒq„q„Wn|S(Nii(	ROR—R	RMRŒR–RFR'Ra(RR–R—tmctmp1tmp2R9((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyRŠs$
8cC@sag}x+|jƒD]}|j||jƒƒqWx&t|ƒdkr\|jtjƒq7W|S(Ni(R–RR	tlenRM(RRqR–tp((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR‰$scC@s®y|j|ƒ}Wntjk
r*dSX|jƒ}|rJ|d}n|jƒ}|dkrzt|j||ƒ}ntj	|||d|j
ƒkd|j
ƒk|ƒS(Nis.hgtagsRyRz(R}RR~R'RR‘t_converttagsR,RRR‚(R„RR9RqR‡RR‘((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyRƒ-s
cC@sg}xõ|jƒD]ç}y|jddƒ\}}Wn+tk
rb|jtdƒ|ƒqnXytj|ƒ}Wn+tk
r£|jtdƒ|ƒqnXy(|jdtj	||ƒ|fƒWqt
k
rù|jtdƒ|ƒqqXqWdj|ƒS(Nt is&skipping incorrectly formatted tag %s
s%skipping incorrectly formatted id %s
s%s %s
sno mapping for id %s
R(t
splitlinestsplitt
ValueErrortwarnRR	tbint	TypeErrorRthextKeyErrortjoin(R,RqR‘tnewdatatlinetidR5tnewid((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR«=s*


cC@s|dks$|dks$|dkr(tS|r>||ƒr>tSy%|j|ƒjƒ|ddkSWntjk
rztSXdS(slReturn true if file should be considered a largefile, i.e.
    matcher matches it or it is larger than size.s.hgtagss	.hgignores.hgsigsiN(RCRDR}RRR~(tfileRRtR((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyR‹Ts$%c	@s$|s
dStj||dtƒ}d}|jdt|ƒƒ|j|ƒ‰t‡fd†|ƒ}|jdt|ƒƒxŠ|D]‚}|jtdƒ|dtd	ƒd
t|ƒƒt	j
||ƒ}|sìtjtdƒ|ƒ‚n|j
||ƒ|d7}q„W|jtdƒdƒdS(
s&upload largefiles to the central storeNtputis,sending statlfile command for %d largefiles
c@s	ˆ|S(N((th(tretval(s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyt<lambda>lss"%d largefiles need to be uploaded
suploading largefilesRR—R s6largefile %s missing from store (needs to be uploaded)i(Rt	openstoreRDtdebugR©RXtfilterRURRR2RR3R»R'(R,RRlR—tstoretatR:R-((R½s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pytuploadlfilesas$
!

cC@sC|r|jdƒ}n	dg}tj|ƒ}|j|d|ƒS(s)Verify that every largefile revision in the current changeset
    exists in the central store.  With --contents, also verify that
    the contents of each local largefile file revision are correct (SHA-1 hash
    matches the revision ID).  With --all, check every changeset in
    this repository.sall()R$tcontents(trevsRR¿tverify(R,R„tallRÅRÆRÂ((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pytverifylfiles{s
	cC@sútj||ƒ}|r1t|ƒt|ƒ@}ng}xŽ|D]†}y'||tj|ƒjƒjƒ}Wn.tk
r›}|jtjkr•q>n‚nXtj	||ƒs>|j
||fƒq>q>W|rðtj|ƒ}	|	j
|ƒ}
|
SggfS(s.cachelfiles ensures that all largefiles needed by the specified revision
    are present in the repository's largefile cache.

    returns a tuple (cached, missing).  cached is the list of files downloaded
    by this operation; missing is the list of files that were needed but could
    not be found.(Rt
listlfilesROR€R‘R1tIOErrorterrnotENOENTR2RRR¿RF(R,R„R	tfilelistRrttogettlfiletexpectedhashterrRÂR¥((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pytcachelfiles‰s$
'c
C@sûtj|d|jtjƒgiƒ}d„}d}d}|gkr´xhtj||i|d6|ƒD]D}t|||j	ƒƒ\}}	|t
|ƒ7}|t
|	ƒ7}qiWn|jtdƒ|ƒ|dkrñ|jtdƒ|ƒn||fS(NcS@sdS(N((Rtfns((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pytprepare©siR6s %d additional largefiles cached
s!%d largefiles failed to download
(
R
RR'twjoinRR*RtwalkchangerevsRÓR	R©RIR(
R,R„R6tmatchfnRÕttotalsuccessttotalmissingRRmRw((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyRd¦s
	
cC@sÎtj|||ƒ}|jƒ§tj||ƒ}ttj|ƒƒt|ƒB}|dk	r“t|ƒ}g|D]}||krr|^qr}ni}	d\}
}|j}xŽ|D]†}
|
}tj	j
tj|||j
|ƒƒd|jƒ}tj|
ƒ}tj	j
tj|||j
|ƒƒd|jƒ}|j|ƒrö|j|ƒr•|j|ƒr•tj|j
|ƒ|j
|ƒƒ|j|ƒntj||
ƒ}|dkr;|
|dkrÙ|j|dtƒn|j|
ƒ||	|
<q;qµ|j|ƒrµ|jj|
ƒ|dkrµ|j|ƒ|d7}qµqµW|jƒ|ru|tdƒƒt||d|ƒnx|D]}
d}|	j|
ƒ}|rÎtj|||
ƒs¸q|n|j|
ƒd}n|
}tj|
ƒ}|j|ƒrs|j|ƒj d@}|j|ƒj }||d@krs|d
M}|rW||d	?d@t!j"@O}n|j#||ƒd}qsn|
|7}
tj$|||
|ƒq|W|jƒ|rÄ|td
ƒ|
|fƒnWdQXdS(s´Update largefiles according to standins in the working directory

    If ``printmessage`` is other than ``None``, it means "print (or
    ignore, for false) message forcibly".
    itstartRt
ignoremissingisgetting changed largefiles
i@iIis"%d largefiles updated, %d removed
N(iii¶ÿÿÿ(%RtgetstatuswriterRNtopenlfdirstateRORÊR'RWtosR;trelpathR
torigpathRµRSR€RXRitcopyfilet
unlinkpathtreadstandinRDtnormallookupRft	normalizetwriteRRÓRFt
copyfromcachetnormaltstattst_modeRtumasktchmodtsynclfdirstate(R,R„RÎtprintmessageRåtstatuswritert
lfdirstateRrR9RtupdatedtremovedRWRÐtrellfiletrellfileorigt
relstandintrelstandinorigt
expecthashtupdate1tstandinexectst((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pytupdatelfiles¸s€
(	
		




	


tlfpulltrR6s#pull largefiles for these revisionss--r REV... [-e CMD] [--remotecmd CMD] [SOURCE]Rc	K@s¼||_|jdgƒ}|s9tjtdƒƒ‚ntj||ƒ}d}xM|D]E}|jtdƒ|ƒt|||ƒ\}}|t	|ƒ7}qXW|j
tdƒ|ƒdS(s0pull largefiles for the specified revisions from the specified source

    Pull largefiles that are referenced from local changesets but missing
    locally, pulling from a remote repository to the local cache.

    If SOURCE is omitted, the 'default' path will be used.
    See :hg:`help urls` for more information.

    .. container:: verbose

      Some examples:

      - pull largefiles for all branch heads::

          hg lfpull -r "head() and not closed()"

      - pull largefiles on the default branch::

          hg lfpull -r "branch(default)"
    R6sno revisions specifiedis#pulling largefiles for revision %s
s%d largefiles cached
N(tlfpullsourceRFRR3RR
trevrangetnoteRÓR©RI(	R,R„R-RARÆt	numcachedR6tcachedRw((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyRýs	
(0t__doc__t
__future__RRÌRŽRßRitmercurial.i18nRt	mercurialRRRRRRRRRR	R
RReRR
RRRRhtcmdtabletcommandRCRDRRVR•RŠR‰RƒR«R‹RÄRÉR'RÓRdRüt
remoteoptsRý(((s?/usr/lib/python2.7/dist-packages/hgext/largefiles/lfcommands.pyt<module>	sLF
			‡	N			
					
	_