Show More
@@ -505,11 +505,12 b' def backout(ui, repo, node=None, rev=Non' | |||||
505 |
|
505 | |||
506 |
|
506 | |||
507 | def commitfunc(ui, repo, message, match, opts): |
|
507 | def commitfunc(ui, repo, message, match, opts): | |
508 | e = cmdutil.getcommiteditor(**opts) |
|
508 | editform = 'backout' | |
|
509 | e = cmdutil.getcommiteditor(editform=editform, **opts) | |||
509 | if not message: |
|
510 | if not message: | |
510 | # we don't translate commit messages |
|
511 | # we don't translate commit messages | |
511 | message = "Backed out changeset %s" % short(node) |
|
512 | message = "Backed out changeset %s" % short(node) | |
512 | e = cmdutil.getcommiteditor(edit=True) |
|
513 | e = cmdutil.getcommiteditor(edit=True, editform=editform) | |
513 | return repo.commit(message, opts.get('user'), opts.get('date'), |
|
514 | return repo.commit(message, opts.get('user'), opts.get('date'), | |
514 | match, editor=e) |
|
515 | match, editor=e) | |
515 | newnode = cmdutil.commit(ui, repo, commitfunc, [], opts) |
|
516 | newnode = cmdutil.commit(ui, repo, commitfunc, [], opts) |
General Comments 0
You need to be logged in to leave comments.
Login now