changeset 43371:85ab79bc7dab stable

py3: avoid another b''.format() in chistedit Now you'll get a different traceback if you try to confirm you histedit plan. Differential Revision: https://phab.mercurial-scm.org/D7184
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 31 Oct 2019 15:02:48 -0700
parents 7f56b0cbd245
children 66a0c5faed1e
files hgext/histedit.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Thu Oct 31 15:02:03 2019 -0700
+++ b/hgext/histedit.py	Thu Oct 31 15:02:48 2019 -0700
@@ -1322,7 +1322,7 @@
     our list of rules"""
     commands = []
     for rules in rules:
-        commands.append(b"{0} {1}\n".format(rules.action, rules.ctx))
+        commands.append(b'%s %s\n' % (rules.action, rules.ctx))
     return commands