obsolete: convert error string to a sysstr
authorAugie Fackler <augie@google.com>
Fri, 12 Oct 2018 06:22:15 -0400
changeset 40164 fee616937ef3
parent 40163 9f0ee4a60d65
child 40165 7d1ba539bbb6
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
mercurial/obsolete.py
--- 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: