Show More
@@ -376,6 +376,12 class histeditaction(object): | |||
|
376 | 376 | maxlen = max(maxlen, 22) # avoid truncating hash |
|
377 | 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 | 385 | def constraints(self): |
|
380 | 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