Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 3755:05120e210c65
Use unsigned version format.
This way can use one additional bit, and when encountering invalid revlogs
with the first bit set don't produce python warnings or strange error messages.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 01 Dec 2006 23:27:53 +0100 |
parents | cd25a4a1a265 |
children | abaee83ce0a6 27230c29bfec |
comparison
equal
deleted
inserted
replaced
3754:cd25a4a1a265 | 3755:05120e210c65 |
---|---|
79 # 4 bytes parent 1 rev | 79 # 4 bytes parent 1 rev |
80 # 4 bytes parent 2 rev | 80 # 4 bytes parent 2 rev |
81 # 32 bytes: nodeid | 81 # 32 bytes: nodeid |
82 indexformatng = ">Qiiiiii20s12x" | 82 indexformatng = ">Qiiiiii20s12x" |
83 ngshaoffset = 32 | 83 ngshaoffset = 32 |
84 versionformat = ">i" | 84 versionformat = ">I" |
85 | 85 |
86 class lazyparser(object): | 86 class lazyparser(object): |
87 """ | 87 """ |
88 this class avoids the need to parse the entirety of large indices | 88 this class avoids the need to parse the entirety of large indices |
89 """ | 89 """ |