File: //usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyc
σ
ΫXc @@ sο d d l m Z d d l Z d d l Z d d l m Z d d l m Z m Z m Z m
Z
d d l m Z e j
Z
e j Z d Z d Z d Z d Z d Z d Z d
Z d Z d Z d
Z d Z e j d Z d Z d S( i ( t absolute_importN( t _( t errort httppeert utilt wireprotoi ( t lfutilsa
This repository uses the largefiles extension.
Please enable it in your Mercurial config file.
c C@ s | j t j | | } t j t j j | t j | d | j j
} z² yk | j | | j j
d | t j | j k r£ t d t d n | j t j | | Wn@ t k
r } | j j t d | | j f t j d SXWd | j Xt j d S( sc Server command for putting a largefile into a repository's local store
and into the user cache.t
createmodei s$ largefile contents do not match hashs, largefiles: failed to put %s into store: %s
i N( t redirectR t storepathR t makedirst ost patht dirnamet atomictempfilet storeR t getfilet _fpt seekt hexsha1t IOErrorR t closet linktousercachet uit warnt strerrorR t pushrest discard( t repot protot shaR t tmpfpt e( ( s: /usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt putlfile# s$
c @ s~ t j | | } | s4 t j t d | n t | d t j j d f d } t j
| S( s\ Server command for retrieving a largefile from the repository-local
cache or user cache.s+ requested largefile %s not present in cachet rbi c 3@ s, d Vx t j D] } | Vq Wd S( Ns %d
( R t
filechunkiter( t chunk( t ft length( s: /usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt generatorK s ( R t findfileR t AbortR t openR t fstatt filenoR t streamres( R R R t filenameR' ( ( R% R&