I'm not thrilled with this, but it'll do.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGa2ebdca4d10e: localrepo: ensure we properly %-format int in exception throw
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
raise error.FilteredRepoLookupError(_("filtered revision '%s'") % pycompat.bytestr(changeid)) except (IndexError, LookupError):+ if isinstance(changeid, int):
+ raise error.RepoLookupError(
+ _("unknown revision '%d'") % changeid)raise error.RepoLookupError(_("unknown revision '%s'") % changeid)
Use pycompat.bytestr(changeid)? It's worked around as such just a few lines
above.