��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(Rthashtfd((s>/sys/lib/python2.7/site-packages/hgext/largefiles/wirestore.pyt_putscCs|jj|�S(N(Rtgetlfile(RR((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(RthashesRtfuturesRtretval((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
|