Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 2141:ed631e83fa06
Corrected error message for incompatible revision flags.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Thu, 27 Apr 2006 21:03:07 +0200 |
parents | f5046cab9e2e |
children | 8a1e2a9c7013 |
comparison
equal
deleted
inserted
replaced
2140:6447a32aefce | 2141:ed631e83fa06 |
---|---|
397 off += e[1] | 397 off += e[1] |
398 | 398 |
399 def ngoffset(self, q): | 399 def ngoffset(self, q): |
400 if q & 0xFFFF: | 400 if q & 0xFFFF: |
401 raise RevlogError(_('%s: incompatible revision flag %x') % | 401 raise RevlogError(_('%s: incompatible revision flag %x') % |
402 (self.indexfile, type)) | 402 (self.indexfile, q)) |
403 return long(q >> 16) | 403 return long(q >> 16) |
404 | 404 |
405 def ngtype(self, q): | 405 def ngtype(self, q): |
406 return int(q & 0xFFFF) | 406 return int(q & 0xFFFF) |
407 | 407 |