Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 3679:2956948b81f3
fix warnings generated by pygettext.py.
author | Marcos Chaves <marcos.nospam@gmail.com> |
---|---|
date | Sat, 18 Nov 2006 17:20:38 -0200 |
parents | 508036290b00 |
children | 69cf255a55a1 |
line wrap: on
line diff
--- a/mercurial/revlog.py Sat Nov 18 23:51:15 2006 -0200 +++ b/mercurial/revlog.py Sat Nov 18 17:20:38 2006 -0200 @@ -30,7 +30,7 @@ def flagstr(flag): if flag == "inline": return REVLOGNGINLINEDATA - raise RevlogError(_("unknown revlog flag %s" % flag)) + raise RevlogError(_("unknown revlog flag %s") % flag) def hash(text, p1, p2): """generate a hash from the given text and its parent hashes @@ -355,15 +355,15 @@ fmt = v & 0xFFFF if fmt == REVLOGV0: if flags: - raise RevlogError(_("index %s invalid flags %x for format v0" % - (self.indexfile, flags))) + raise RevlogError(_("index %s invalid flags %x for format v0") % + (self.indexfile, flags)) elif fmt == REVLOGNG: if flags & ~REVLOGNGINLINEDATA: - raise RevlogError(_("index %s invalid flags %x for revlogng" % - (self.indexfile, flags))) + raise RevlogError(_("index %s invalid flags %x for revlogng") % + (self.indexfile, flags)) else: - raise RevlogError(_("index %s invalid format %d" % - (self.indexfile, fmt))) + raise RevlogError(_("index %s invalid format %d") % + (self.indexfile, fmt)) self.version = v if v == REVLOGV0: self.indexformat = indexformatv0 @@ -931,8 +931,8 @@ return trinfo = tr.find(self.indexfile) if trinfo == None: - raise RevlogError(_("%s not found in the transaction" % - self.indexfile)) + raise RevlogError(_("%s not found in the transaction") % + self.indexfile) trindex = trinfo[2] dataoff = self.start(trindex)