##// 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 extra = commitopts.get('extra')
293 extra = commitopts.get('extra')
294
294
295 parents = (first.p1().node(), first.p2().node())
295 parents = (first.p1().node(), first.p2().node())
296 editor = cmdutil.getcommiteditor(edit=True, editform='histedit.fold')
296 new = context.memctx(repo,
297 new = context.memctx(repo,
297 parents=parents,
298 parents=parents,
298 text=message,
299 text=message,
@@ -301,7 +302,7 b' def collapse(repo, first, last, commitop'
301 user=user,
302 user=user,
302 date=date,
303 date=date,
303 extra=extra,
304 extra=extra,
304 editor=cmdutil.getcommiteditor(edit=True))
305 editor=editor)
305 return repo.commitctx(new)
306 return repo.commitctx(new)
306
307
307 def pick(ui, repo, ctx, ha, opts):
308 def pick(ui, repo, ctx, ha, opts):
@@ -405,9 +406,10 b' def message(ui, repo, ctx, ha, opts):'
405 _('Fix up the change and run hg histedit --continue'))
406 _('Fix up the change and run hg histedit --continue'))
406 message = oldctx.description()
407 message = oldctx.description()
407 commit = commitfuncfor(repo, oldctx)
408 commit = commitfuncfor(repo, oldctx)
409 editor = cmdutil.getcommiteditor(edit=True, editform='histedit.mess')
408 new = commit(text=message, user=oldctx.user(), date=oldctx.date(),
410 new = commit(text=message, user=oldctx.user(), date=oldctx.date(),
409 extra=oldctx.extra(),
411 extra=oldctx.extra(),
410 editor=cmdutil.getcommiteditor(edit=True))
412 editor=editor)
411 newctx = repo[new]
413 newctx = repo[new]
412 if oldctx.node() != newctx.node():
414 if oldctx.node() != newctx.node():
413 return newctx, [(oldctx.node(), (new,))]
415 return newctx, [(oldctx.node(), (new,))]
@@ -684,7 +686,9 b' def bootstrapcontinue(ui, repo, parentct'
684 else:
686 else:
685 message = ctx.description()
687 message = ctx.description()
686 editopt = action in ('e', 'edit', 'm', 'mess')
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 commit = commitfuncfor(repo, ctx)
692 commit = commitfuncfor(repo, ctx)
689 new = commit(text=message, user=ctx.user(),
693 new = commit(text=message, user=ctx.user(),
690 date=ctx.date(), extra=ctx.extra(),
694 date=ctx.date(), extra=ctx.extra(),
General Comments 0
You need to be logged in to leave comments. Login now