File: //proc/thread-self/root/lib64/python2.7/site-packages/hgext/largefiles/proto.pyc
�
1�3\c @@ 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
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 e j d � Z d � Z d S( i ( t absolute_importN( t _( t errort httppeert utilt wireprototypest wireprotov1peeri ( t lfutilsa
This repository uses the largefiles extension.
Please enable it in your Mercurial config file.
c C@ si | j � �9} t j | | � } t j t j j | � � t j | d | j j
�} z� y� x! | j � D] } | j | � qh W| j
j d � | t j | j
� k r� t d t d � � � n | j � t j | | � WnU t k
r1} | j j t d � | | j f � t j d | r*| j � n d � SXWd | j � XWd QXt j d | rb| j � n 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 t N( t mayberedirectstdioR t storepathR t makedirst ost patht dirnamet atomictempfilet storeR t
getpayloadt writet _fpt seekt hexsha1t IOErrorR t closet linktousercachet uit warnt strerrorR t pushrest getvaluet discard( t repot protot shat outputR t tmpfpt pt e( ( s<