##// END OF EJS Templates
histedit: use cmdutil.command decorator
Adrian Buehlmann -
r17147:80e86151 default
parent child Browse files
Show More
@@ -159,6 +159,9 b' from mercurial import scmutil'
159 from mercurial import util
159 from mercurial import util
160 from mercurial.i18n import _
160 from mercurial.i18n import _
161
161
162 cmdtable = {}
163 command = cmdutil.command(cmdtable)
164
162 testedwith = 'internal'
165 testedwith = 'internal'
163
166
164 editcomment = """
167 editcomment = """
@@ -374,6 +377,19 b" actiontable = {'p': pick,"
374 'm': message,
377 'm': message,
375 'mess': message,
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 def histedit(ui, repo, *parent, **opts):
393 def histedit(ui, repo, *parent, **opts):
378 """interactively edit changeset history
394 """interactively edit changeset history
379 """
395 """
@@ -677,22 +693,3 b' def verifyrules(rules, repo, ctxs):'
677 raise util.Abort(_('unknown action "%s"') % action)
693 raise util.Abort(_('unknown action "%s"') % action)
678 parsed.append([action, ha])
694 parsed.append([action, ha])
679 return parsed
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