Use unsigned version format.
authorThomas Arendsen Hein <thomas@intevation.de>
Fri, 01 Dec 2006 23:27:53 +0100
changeset 3755 05120e210c65
parent 3754 cd25a4a1a265
child 3756 2f2b59fcb394
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.
mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -81,7 +81,7 @@ v0shaoffset = 56
 # 32 bytes: nodeid
 indexformatng = ">Qiiiiii20s12x"
 ngshaoffset = 32
-versionformat = ">i"
+versionformat = ">I"
 
 class lazyparser(object):
     """