Mercurial > public > mercurial-scm > hg-stable
diff mercurial/obsolete.py @ 40164:fee616937ef3
obsolete: convert error string to a sysstr
This should be okay because we're just %-formatting a hash into a
localized string.
Differential Revision: https://phab.mercurial-scm.org/D4985
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 12 Oct 2018 06:22:15 -0400 |
parents | a4d62ff9a86d |
children | 4f1f024353ae |
line wrap: on
line diff
--- a/mercurial/obsolete.py Fri Oct 12 06:39:32 2018 -0400 +++ b/mercurial/obsolete.py Fri Oct 12 06:22:15 2018 -0400 @@ -599,7 +599,8 @@ if len(succ) != 20: raise ValueError(succ) if prec in succs: - raise ValueError(_('in-marker cycle with %s') % node.hex(prec)) + raise ValueError( + pycompat.sysstr(_('in-marker cycle with %s') % node.hex(prec))) metadata = tuple(sorted(metadata.iteritems())) for k, v in metadata: