##// END OF EJS Templates
record: clean up command table...
Kevin Bullock -
r13196:592998ba default
parent child Browse files
Show More
@@ -408,8 +408,6 b' def qrecord(ui, repo, patch, *pats, **op'
408 def committomq(ui, repo, *pats, **opts):
408 def committomq(ui, repo, *pats, **opts):
409 mq.new(ui, repo, patch, *pats, **opts)
409 mq.new(ui, repo, patch, *pats, **opts)
410
410
411 opts = opts.copy()
412 opts['force'] = True # always 'qnew -f'
413 dorecord(ui, repo, committomq, *pats, **opts)
411 dorecord(ui, repo, committomq, *pats, **opts)
414
412
415
413
@@ -557,11 +555,7 b' def dorecord(ui, repo, commitfunc, *pats'
557
555
558 cmdtable = {
556 cmdtable = {
559 "record":
557 "record":
560 (record,
558 (record, commands.table['^commit|ci'][1], # same options as commit
561
562 # add commit options
563 commands.table['^commit|ci'][1],
564
565 _('hg record [OPTION]... [FILE]...')),
559 _('hg record [OPTION]... [FILE]...')),
566 }
560 }
567
561
@@ -574,11 +568,7 b' def uisetup(ui):'
574
568
575 qcmdtable = {
569 qcmdtable = {
576 "qrecord":
570 "qrecord":
577 (qrecord,
571 (qrecord, mq.cmdtable['^qnew'][1], # same options as qnew
578
579 # add qnew options, except '--force'
580 [opt for opt in mq.cmdtable['^qnew'][1] if opt[1] != 'force'],
581
582 _('hg qrecord [OPTION]... PATCH [FILE]...')),
572 _('hg qrecord [OPTION]... PATCH [FILE]...')),
583 }
573 }
584
574
General Comments 0
You need to be logged in to leave comments. Login now