##// END OF EJS Templates
histedit: pass 'editform' argument to 'cmdutil.getcommiteditor'...
FUJIWARA Katsunori -
r22002:a44b7b6f default
parent child Browse files
Show More
@@ -293,6 +293,7 b' def collapse(repo, first, last, commitop'
293 293 extra = commitopts.get('extra')
294 294
295 295 parents = (first.p1().node(), first.p2().node())
296 editor = cmdutil.getcommiteditor(edit=True, editform='histedit.fold')
296 297 new = context.memctx(repo,
297 298 parents=parents,
298 299 text=message,
@@ -301,7 +302,7 b' def collapse(repo, first, last, commitop'
301 302 user=user,
302 303 date=date,
303 304 extra=extra,
304 editor=cmdutil.getcommiteditor(edit=True))
305 editor=editor)
305 306 return repo.commitctx(new)
306 307
307 308 def pick(ui, repo, ctx, ha, opts):
@@ -405,9 +406,10 b' def message(ui, repo, ctx, ha, opts):'
405 406 _('Fix up the change and run hg histedit --continue'))
406 407 message = oldctx.description()
407 408 commit = commitfuncfor(repo, oldctx)
409 editor = cmdutil.getcommiteditor(edit=True, editform='histedit.mess')
408 410 new = commit(text=message, user=oldctx.user(), date=oldctx.date(),
409 411 extra=oldctx.extra(),
410 editor=cmdutil.getcommiteditor(edit=True))
412 editor=editor)
411 413 newctx = repo[new]
412 414 if oldctx.node() != newctx.node():
413 415 return newctx, [(oldctx.node(), (new,))]
@@ -684,7 +686,9 b' def bootstrapcontinue(ui, repo, parentct'
684 686 else:
685 687 message = ctx.description()
686 688 editopt = action in ('e', 'edit', 'm', 'mess')
687 editor = cmdutil.getcommiteditor(edit=editopt)
689 canonaction = {'e': 'edit', 'm': 'mess', 'p': 'pick'}
690 editform = 'histedit.%s' % canonaction.get(action, action)
691 editor = cmdutil.getcommiteditor(edit=editopt, editform=editform)
688 692 commit = commitfuncfor(repo, ctx)
689 693 new = commit(text=message, user=ctx.user(),
690 694 date=ctx.date(), extra=ctx.extra(),
General Comments 0
You need to be logged in to leave comments. Login now