Show More
@@ -467,12 +467,12 b' def backout(ui, repo, node=None, rev=Non' | |||||
467 | finally: |
|
467 | finally: | |
468 | ui.setconfig('ui', 'forcemerge', '') |
|
468 | ui.setconfig('ui', 'forcemerge', '') | |
469 |
|
469 | |||
470 | commit_opts = opts.copy() |
|
470 | if not opts['message'] and not opts['logfile']: | |
471 | if not commit_opts['message'] and not commit_opts['logfile']: |
|
|||
472 | # we don't translate commit messages |
|
471 | # we don't translate commit messages | |
473 |
|
|
472 | opts['message'] = "Backed out changeset %s" % short(node) | |
474 |
|
|
473 | opts['force_editor'] = True | |
475 |
commit(ui, repo, ** |
|
474 | commit(ui, repo, **opts) | |
|
475 | ||||
476 | def nice(node): |
|
476 | def nice(node): | |
477 | return '%d:%s' % (repo.changelog.rev(node), short(node)) |
|
477 | return '%d:%s' % (repo.changelog.rev(node), short(node)) | |
478 | ui.status(_('changeset %s backs out changeset %s\n') % |
|
478 | ui.status(_('changeset %s backs out changeset %s\n') % |
General Comments 0
You need to be logged in to leave comments.
Login now