--- a/mercurial/revlog.py Thu Jul 26 12:02:58 2007 -0500
+++ b/mercurial/revlog.py Thu Jul 26 12:02:58 2007 -0500
@@ -29,8 +29,6 @@
pass
def getoffset(q):
- if q & 0xFFFF:
- raise RevlogError(_('incompatible revision flag %x') % q)
return int(q >> 16)
def gettype(q):
@@ -907,6 +905,10 @@
rev = self.rev(node)
base = self.base(rev)
+ # check rev flags
+ if self.index[rev][0] & 0xFFFF:
+ raise RevlogError(_('incompatible revision flag %x') % q)
+
if self._inline:
# we probably have the whole chunk cached
df = None