mercurial/pure/parsers.py
changeset 24634 4ece2847cf4c
parent 24215 feddc5284724
child 27339 6ab8c6511a6a
equal deleted inserted replaced
24633:2f8f7cc6a53b 24634:4ece2847cf4c
     4 #
     4 #
     5 # This software may be used and distributed according to the terms of the
     5 # This software may be used and distributed according to the terms of the
     6 # GNU General Public License version 2 or any later version.
     6 # GNU General Public License version 2 or any later version.
     7 
     7 
     8 from mercurial.node import nullid
     8 from mercurial.node import nullid
     9 from mercurial import util
       
    10 import struct, zlib, cStringIO
     9 import struct, zlib, cStringIO
    11 
    10 
    12 _pack = struct.pack
    11 _pack = struct.pack
    13 _unpack = struct.unpack
    12 _unpack = struct.unpack
    14 _compress = zlib.compress
    13 _compress = zlib.compress
    15 _decompress = zlib.decompress
    14 _decompress = zlib.decompress
    16 _sha = util.sha1
       
    17 
    15 
    18 # Some code below makes tuples directly because it's more convenient. However,
    16 # Some code below makes tuples directly because it's more convenient. However,
    19 # code outside this module should always use dirstatetuple.
    17 # code outside this module should always use dirstatetuple.
    20 def dirstatetuple(*x):
    18 def dirstatetuple(*x):
    21     # x is a tuple
    19     # x is a tuple