Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/site-packages/hgext/largefiles/wirestore.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��c@s;dZddlZddlZdejfd��YZdS(s6largefile store working over Mercurial's wire protocoli�Nt	wirestorecBs,eZd�Zd�Zd�Zd�ZRS(cCs�|jd�}|s'tjg��n|jd�}d|krTtj|��n||_tt|�j|||j��dS(Nt
largefilest,tserve(	tcapabletlfutiltstoreprotonotcapabletsplittremotetsuperRt__init__turl(tselftuitrepoRtcapt
storetypes((s>/sys/lib/python2.7/site-packages/hgext/largefiles/wirestore.pyR
s	cCs|jj||�S(N(Rtputlfile(Rthashtfd((s>/sys/lib/python2.7/site-packages/hgext/largefiles/wirestore.pyt_putscCs|jj|�S(N(Rtgetlfile(RR((s>/sys/lib/python2.7/site-packages/hgext/largefiles/wirestore.pyt_getscCso|jj�}i}x!|D]}|j|�||<qW|j�i}x|D]}||j||<qPW|S(s�For each hash, return 0 if it is available, other values if not.
        It is usually 2 if the largefile is missing, but might be 1 the server
        has a corrupted copy.(Rtbatcht	statlfiletsubmittvalue(RthashesRtfuturesRtretval((s>/sys/lib/python2.7/site-packages/hgext/largefiles/wirestore.pyt_stats


(t__name__t
__module__R
RRR(((s>/sys/lib/python2.7/site-packages/hgext/largefiles/wirestore.pyRs	
		(t__doc__RtremotestoreR(((s>/sys/lib/python2.7/site-packages/hgext/largefiles/wirestore.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].