Show More
@@ -29,8 +29,6 b' class LookupError(RevlogError):' | |||||
29 | pass |
|
29 | pass | |
30 |
|
30 | |||
31 | def getoffset(q): |
|
31 | def getoffset(q): | |
32 | if q & 0xFFFF: |
|
|||
33 | raise RevlogError(_('incompatible revision flag %x') % q) |
|
|||
34 | return int(q >> 16) |
|
32 | return int(q >> 16) | |
35 |
|
33 | |||
36 | def gettype(q): |
|
34 | def gettype(q): | |
@@ -907,6 +905,10 b' class revlog(object):' | |||||
907 | rev = self.rev(node) |
|
905 | rev = self.rev(node) | |
908 | base = self.base(rev) |
|
906 | base = self.base(rev) | |
909 |
|
907 | |||
|
908 | # check rev flags | |||
|
909 | if self.index[rev][0] & 0xFFFF: | |||
|
910 | raise RevlogError(_('incompatible revision flag %x') % q) | |||
|
911 | ||||
910 | if self._inline: |
|
912 | if self._inline: | |
911 | # we probably have the whole chunk cached |
|
913 | # we probably have the whole chunk cached | |
912 | df = None |
|
914 | df = None |
General Comments 0
You need to be logged in to leave comments.
Login now