# HG changeset patch # User Matt Mackall # Date 1164961496 21600 # Node ID 3a099154b110c0453ee2419acc68fdcf9da91eac # Parent 86c1d1d3559314f6824ff3de9c9ba07f8c0d6870 Make revlog error slightly less scary diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -355,14 +355,14 @@ class revlog(object): fmt = v & 0xFFFF if fmt == REVLOGV0: if flags: - raise RevlogError(_("index %s invalid flags %x for format v0") + raise RevlogError(_("index %s unknown flags %x for format v0") % (self.indexfile, flags)) elif fmt == REVLOGNG: if flags & ~REVLOGNGINLINEDATA: - raise RevlogError(_("index %s invalid flags %x for revlogng") + raise RevlogError(_("index %s unknown flags %x for revlogng") % (self.indexfile, flags)) else: - raise RevlogError(_("index %s invalid format %d") + raise RevlogError(_("index %s unknown format %d") % (self.indexfile, fmt)) self.version = v if v == REVLOGV0: