##// END OF EJS Templates
histedit: add tostate method to histedit action...
Mateusz Kwapich -
r27206:7a523b6d default
parent child Browse files
Show More
@@ -376,6 +376,12 b' class histeditaction(object):'
376 maxlen = max(maxlen, 22) # avoid truncating hash
376 maxlen = max(maxlen, 22) # avoid truncating hash
377 return util.ellipsis(line, maxlen)
377 return util.ellipsis(line, maxlen)
378
378
379 def tostate(self):
380 """Print an action in format used by histedit state files
381 (the first line is a verb, the remainder is the second)
382 """
383 return "%s\n%s" % (self.verb, node.hex(self.node))
384
379 def constraints(self):
385 def constraints(self):
380 """Return a set of constrains that this action should be verified for
386 """Return a set of constrains that this action should be verified for
381 """
387 """
General Comments 0
You need to be logged in to leave comments. Login now