File: //proc/self/root/lib64/python2.7/site-packages/hgext/fastannotate/revmap.pyc
�
1�3\c @@ s� d d l m Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m
Z
d d l m Z d Z d Z
d Z d e f d
� � YZ d � Z d S( i ( t absolute_importN( t hex( t errort pycompati ( R i i t revmapc B@ s� e Z d Z d Z d d � Z d � Z e d � � Z e d e d � Z
d � Z d � Z d � Z
d � Z e d
� Z d � Z d � Z d
� Z e d � � Z d � Z RS( s~ trivial hg bin hash - linelog rev bidirectional map
also stores a flag (uint8) for each revision, and track renames.
s REVMAP1 c C@ s� | | _ d g | _ d g | _ i | _ d g | _ d g | _ d | _ | r} t j j | � rp | j
� q} | j � n d S( s= create or load the revmap, optionally associate to a file
if path is None, the revmap is entirely in-memory. the caller is
responsible for locking. concurrent writes to a same file is unsafe.
the caller needs to make sure one file is associated to at most one
revmap object at a time.i t i����N( t patht Nonet _rev2hsht _rev2flagt _hsh2revt _renamerevst _renamepathst _lastmaxrevt ost existst _loadt flush( t selfR ( ( s? /usr/lib64/python2.7/site-packages/hgext/fastannotate/revmap.pyt __init__9 s
c C@ sS | j | _ | j | _ | j j � | _ | j | _ | j | _ d | _ d S( s>