Mercurial > hg
changeset 3754:cd25a4a1a265
Improve error message for unknown revlog flags.
Old: unknown flags 120000 for ...
New: unknown flags 0x0012 for ...
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 01 Dec 2006 23:16:12 +0100 |
parents | 797c6e70092b |
children | 05120e210c65 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Fri Dec 01 22:29:47 2006 +0100 +++ b/mercurial/revlog.py Fri Dec 01 23:16:12 2006 +0100 @@ -355,12 +355,12 @@ fmt = v & 0xFFFF if fmt == REVLOGV0: if flags: - raise RevlogError(_("index %s unknown flags %x for format v0") - % (self.indexfile, flags)) + raise RevlogError(_("index %s unknown flags %#04x for format v0") + % (self.indexfile, flags >> 16)) elif fmt == REVLOGNG: if flags & ~REVLOGNGINLINEDATA: - raise RevlogError(_("index %s unknown flags %x for revlogng") - % (self.indexfile, flags)) + raise RevlogError(_("index %s unknown flags %#04x for revlogng") + % (self.indexfile, flags >> 16)) else: raise RevlogError(_("index %s unknown format %d") % (self.indexfile, fmt))