D5107: localrepo: ensure we properly %-format int in exception throw

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Tue Oct 16 13:13:08 EDT 2018


durin42 updated this revision to Diff 12173.
durin42 retitled this revision from "localrepo: ensure we properly %-format ints vs strings in exception throw" to "localrepo: ensure we properly %-format int in exception throw".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5107?vs=12139&id=12173

REVISION DETAIL
  https://phab.mercurial-scm.org/D5107

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1282,7 +1282,8 @@
             raise error.FilteredRepoLookupError(_("filtered revision '%s'")
                                                 % pycompat.bytestr(changeid))
         except (IndexError, LookupError):
-            raise error.RepoLookupError(_("unknown revision '%s'") % changeid)
+            raise error.RepoLookupError(
+                _("unknown revision '%s'") % pycompat.bytestr(changeid))
         except error.WdirUnsupported:
             return context.workingctx(self)
 



To: durin42, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list