Mercurial > hg
changeset 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 | 9f0ee4a60d65 |
children | 7d1ba539bbb6 |
files | mercurial/obsolete.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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: