for arg in ctx.args:
if not os.path.exists(arg):
croak("I see no '%s' here." % arg)
+ metadata = History(arg)
+ ctx.resolve(metadata)
+ if ctx.is_empty():
+ ctx.select_tip(metadata)
trailer ="Committing {0} revision {1}.\n".format(arg, ctx.start)
if not comment.edit(content="", trailer=trailer):
announce("in %s, commit cancelled" % arg)
with backend.lifter(arg):
backend.checkin(arg, comment.content())
if not quiet and len(args) > 1:
- announce("%s -> %d" % (arg, len(History(arg))))
+ announce("%s -> %d" % (arg, len(metadata)))
def amend_method(*args):
"Amend comments in stored revisions."