Mercurial > hg
comparison hgext/histedit.py @ 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 |
comparison
equal
deleted
inserted
replaced
43370:7f56b0cbd245 | 43371:85ab79bc7dab |
---|---|
1320 def makecommands(rules): | 1320 def makecommands(rules): |
1321 """Returns a list of commands consumable by histedit --commands based on | 1321 """Returns a list of commands consumable by histedit --commands based on |
1322 our list of rules""" | 1322 our list of rules""" |
1323 commands = [] | 1323 commands = [] |
1324 for rules in rules: | 1324 for rules in rules: |
1325 commands.append(b"{0} {1}\n".format(rules.action, rules.ctx)) | 1325 commands.append(b'%s %s\n' % (rules.action, rules.ctx)) |
1326 return commands | 1326 return commands |
1327 | 1327 |
1328 | 1328 |
1329 def addln(win, y, x, line, color=None): | 1329 def addln(win, y, x, line, color=None): |
1330 """Add a line to the given window left padding but 100% filled with | 1330 """Add a line to the given window left padding but 100% filled with |