hgext/histedit.py
branchstable
changeset 43371 85ab79bc7dab
parent 43370 7f56b0cbd245
child 43372 66a0c5faed1e
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