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
--- 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: