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/basestore.pyc
ó
ÛXc@@s|dZddlmZddlmZddlmZmZddlm	Z	de
fd„ƒYZd	efd
„ƒYZ
dS(sCbase class for store implementations and store-related utility codei(tabsolute_import(t_(tnodetutili(tlfutilt
StoreErrorcB@s)eZdZd„Zd„Zd„ZRS(sZRaised when there is a problem getting files from or putting
    files to a central store.cC@s(||_||_||_||_dS(N(tfilenamethashturltdetail(tselfRRRR	((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyt__init__s			cC@s/tdƒ|jtj|jƒ|j|jfS(Ns0error getting id %s from url %s for file %s: %s
(RRRthidepasswordRRR	(R
((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pytlongmessages	cC@sdtj|jƒ|jfS(Ns%s: %s(RRRR	(R
((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyt__str__ s(t__name__t
__module__t__doc__RR
R(((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyRs		t	basestorecB@sSeZd„Zd„Zd„Zd„Zd„Zed„Zd„Z	d„Z
RS(cC@s||_||_||_dS(N(tuitrepoR(R
RRR((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyR$s		cC@stdƒ‚dS(s>Put source file into the store so it can be retrieved by hash.sabstract methodN(tNotImplementedError(R
tsourceR((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pytput)scC@stdƒ‚dS(s€Check to see if the store contains the given hashes. Given an
        iterable of hashes it returns a mapping from hash to bool.sabstract methodN(R(R
thashes((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pytexists-sc		C@sIg}g}|j}d}|jtd„|Dƒƒƒ}xì|D]ä\}}|jtdƒ|dtdƒdt|ƒƒ|d7}|jtdƒ||fƒ|j|ƒsð|jtd	ƒ||t	j
|jƒfƒ|j|ƒqAn|j
||ƒr|j||fƒqA|j|ƒqAW|jtdƒd
ƒ||fS(súGet the specified largefiles from the store and write to local
        files under repo.root.  files is a list of (filename, hash)
        tuples.  Return (success, missing), lists of files successfully
        downloaded and those not found in the store.  success is a list
        of (filename, hash) tuples; missing is a list of filenames that
        we could not get.  (The detailed error message will already have
        been presented to the user, so missing is just supplied as a
        summary.)ics@s|]\}}|VqdS(N((t.0t	_filenameR((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pys	<genexpr>@ssgetting largefilestunittfilesttotalisgetting %s:%s
s'%s: largefile %s not available from %s
N(RRtsettprogressRtlentnotetgettwarnRRRtappendt_gethashtNone(	R
RtsuccesstmissingRtatt	availableRR((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyR#2s(		!


c	C@s#tjtj|jdƒƒtj|j|ƒ}|d}tj|d|jjjƒR}y|j|||ƒ}Wn/t	k
r¦}|j
j|jƒƒd}nXWdQX||krü|dkrë|j
jt
dƒ|||fƒntj|ƒtStj||ƒtj|j|ƒtS(s¢Get file with the provided hash and store it in the local repo's
        store and in the usercache.
        filename is for informational messages only.
        ts.tmpt
createmodeNs*%s: data corruption (expected %s, got %s)
(RtmakedirsRt	storepathRtatomictempfiletstoreR-t_getfileRRR$R
RtunlinktFalsetrenametlinktousercachetTrue(R
RRt
storefilenamettmpnamettmpfiletgothashterr((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyR&Us&

cC@s˜|jjtdƒt|ƒƒtƒ}g}xÊ|D]Â}|j|}d|jƒtj|jƒƒf}x‡|D]}t	j
|ƒ}	|	ru||}
|	|
jƒf}||krô|j|ƒ|
j
ƒdd!}|j||	|fƒqôququWq6W|j||ƒ}
t|ƒ}ttg|D]\}}|^q'ƒƒ}|rn|jjtdƒ||fƒn |jjtdƒ||fƒt|
ƒS(s³Verify the existence (and, optionally, contents) of every big
        file revision referenced by every changeset in revs.
        Return 0 if all is well, non-zero on any errors.s'searching %d changesets for largefiles
s%d:%sii(s3verified contents of %d revisions of %d largefiles
s4verified existence of %d revisions of %d largefiles
(RtstatusRR!RRtrevRtshortRtsplitstandintfilenodetaddtdataR%t_verifyfilestint(R
trevstcontentstverifiedtfilestocheckR>tcctxtcsettstandinRtfctxtkeytexpectedhashtfailedtnumrevstfnametfnodet	numlfiles((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pytverifyqs6	

%


$+				cC@stdƒ‚dS(sFetch one revision of one file from the store and write it
        to tmpfile.  Compute the hash of the file on-the-fly as it
        downloads and return the hash.  Close tmpfile.  Raise
        StoreError if unable to download the file (e.g. it does not
        exist in the store).sabstract methodN(R(R
R:RR((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyR2–scC@stdƒ‚dS(sÝPerform the actual verification of files in the store.
        'contents' controls verification of content hash.
        'filestocheck' is list of files to check.
        Returns _true_ if any problems are found!
        sabstract methodN(R(R
RGRI((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyRDžs(RRRRRR#R&R4RUR2RD(((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyR#s				#	%	N(Rt
__future__Rtmercurial.i18nRt	mercurialRRR,Rt	ExceptionRtobjectR(((s>/usr/lib/python2.7/dist-packages/hgext/largefiles/basestore.pyt<module>	s