Patchwork D7184: py3: avoid another b''.format() in chistedit

login
register
mail settings
Submitter phabricator
Date Oct. 31, 2019, 10:23 p.m.
Message ID <differential-rev-PHID-DREV-ul4ihiriyg4bnhudkmlc-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42628/
State Superseded
Headers show

Comments

phabricator - Oct. 31, 2019, 10:23 p.m.
martinvonz created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Now you'll get a different traceback if you try to confirm you
  histedit plan.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -1315,7 +1315,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