comparison mercurial/revlog.py @ 6470:ac0bcd951c2c

python 2.6 compatibility: compatibility wrappers for hash functions
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 04 Apr 2008 22:36:40 +0200
parents 3a775af0bc9f
children 602f7c1ab954
comparison
equal deleted inserted replaced
6469:fb502719c75c 6470:ac0bcd951c2c
11 """ 11 """
12 12
13 from node import bin, hex, nullid, nullrev, short 13 from node import bin, hex, nullid, nullrev, short
14 from i18n import _ 14 from i18n import _
15 import changegroup, errno, ancestor, mdiff 15 import changegroup, errno, ancestor, mdiff
16 import sha, struct, util, zlib 16 import struct, util, zlib
17 17
18 _pack = struct.pack 18 _pack = struct.pack
19 _unpack = struct.unpack 19 _unpack = struct.unpack
20 _compress = zlib.compress 20 _compress = zlib.compress
21 _decompress = zlib.decompress 21 _decompress = zlib.decompress
22 _sha = sha.new 22 _sha = util.sha1
23 23
24 # revlog flags 24 # revlog flags
25 REVLOGV0 = 0 25 REVLOGV0 = 0
26 REVLOGNG = 1 26 REVLOGNG = 1
27 REVLOGNGINLINEDATA = (1 << 16) 27 REVLOGNGINLINEDATA = (1 << 16)