# HG changeset patch # User Augie Fackler # Date 2018-10-12 10:22:15 # Node ID fee616937ef36e81ea03dbbf5dc8d2533a548629 # Parent 9f0ee4a60d6588d3085cd63c47aac8aa900b3acf 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 diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py --- a/mercurial/obsolete.py +++ b/mercurial/obsolete.py @@ -599,7 +599,8 @@ class obsstore(object): 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: