##// END OF EJS Templates
histedit: use cmdutil.command decorator
Adrian Buehlmann -
r17147:80e86151 default
parent child Browse files
Show More
@@ -159,6 +159,9 from mercurial import scmutil
159 159 from mercurial import util
160 160 from mercurial.i18n import _
161 161
162 cmdtable = {}
163 command = cmdutil.command(cmdtable)
164
162 165 testedwith = 'internal'
163 166
164 167 editcomment = """
@@ -374,6 +377,19 actiontable = {'p': pick,
374 377 'm': message,
375 378 'mess': message,
376 379 }
380
381 @command('histedit',
382 [('', 'commands', '',
383 _('Read history edits from the specified file.')),
384 ('c', 'continue', False, _('continue an edit already in progress')),
385 ('k', 'keep', False,
386 _("don't strip old nodes after edit is complete")),
387 ('', 'abort', False, _('abort an edit in progress')),
388 ('o', 'outgoing', False, _('changesets not found in destination')),
389 ('f', 'force', False,
390 _('force outgoing even for unrelated repositories')),
391 ('r', 'rev', [], _('first revision to be edited'))],
392 _("[PARENT]"))
377 393 def histedit(ui, repo, *parent, **opts):
378 394 """interactively edit changeset history
379 395 """
@@ -677,22 +693,3 def verifyrules(rules, repo, ctxs):
677 693 raise util.Abort(_('unknown action "%s"') % action)
678 694 parsed.append([action, ha])
679 695 return parsed
680
681
682 cmdtable = {
683 "histedit":
684 (histedit,
685 [('', 'commands', '', _(
686 'Read history edits from the specified file.')),
687 ('c', 'continue', False, _('continue an edit already in progress')),
688 ('k', 'keep', False, _(
689 "don't strip old nodes after edit is complete")),
690 ('', 'abort', False, _('abort an edit in progress')),
691 ('o', 'outgoing', False, _('changesets not found in destination')),
692 ('f', 'force', False, _(
693 'force outgoing even for unrelated repositories')),
694 ('r', 'rev', [], _('first revision to be edited')),
695 ],
696 _("[PARENT]"),
697 ),
698 }
General Comments 0
You need to be logged in to leave comments. Login now