D4985: obsolete: convert error string to a sysstr

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Oct 12 06:58:42 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfee616937ef3: obsolete: convert error string to a sysstr (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4985?vs=11856&id=11867

REVISION DETAIL
  https://phab.mercurial-scm.org/D4985

AFFECTED FILES
  mercurial/obsolete.py

CHANGE DETAILS

diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -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:



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list