[PATCH] obsolete: don't translate internal error message
Yuya Nishihara
yuya at tcha.org
Fri Oct 12 15:08:11 UTC 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1539355871 -7200
# Fri Oct 12 16:51:11 2018 +0200
# Node ID 21a0028bb28eeb4c3d2af807934fd22382594ce2
# Parent 5b8bab9a7e07692e8d827c5315502301a11e4803
obsolete: don't translate internal error message
AFAIK, it's caught only by "hg debugobsolete", so it's pretty much a
programming error.
diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -600,7 +600,7 @@ class obsstore(object):
raise ValueError(succ)
if prec in succs:
raise ValueError(
- pycompat.sysstr(_('in-marker cycle with %s') % node.hex(prec)))
+ r'in-marker cycle with %s' % pycompat.sysstr(node.hex(prec)))
metadata = tuple(sorted(metadata.iteritems()))
for k, v in metadata:
More information about the Mercurial-devel
mailing list