[PATCH] mq: no need to make a copy of seriesopts
Idan Kamara
idankk86 at gmail.com
Mon May 30 13:45:06 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1306781043 -10800
# Node ID 4d3a60e57659bf934b932a54f871c8485d036a43
# Parent f6a433671c06ea7986e0cf2c54686d1af7f22ba1
mq: no need to make a copy of seriesopts
the command decorator takes care of copying the
options (introduced in 5b48ad1e7f1a)
diff -r f6a433671c06 -r 4d3a60e57659 hgext/mq.py
--- a/hgext/mq.py Sun May 29 13:43:50 2011 +0300
+++ b/hgext/mq.py Mon May 30 21:44:03 2011 +0300
@@ -2126,7 +2126,7 @@
repo.mq.qseries(repo, missing=opts.get('missing'), summary=opts.get('summary'))
return 0
- at command("qtop", [] + seriesopts, _('hg qtop [-s]'))
+ at command("qtop", seriesopts, _('hg qtop [-s]'))
def top(ui, repo, **opts):
"""print the name of the current patch
@@ -2140,7 +2140,7 @@
ui.write(_("no patches applied\n"))
return 1
- at command("qnext", [] + seriesopts, _('hg qnext [-s]'))
+ at command("qnext", seriesopts, _('hg qnext [-s]'))
def next(ui, repo, **opts):
"""print the name of the next patch
@@ -2152,7 +2152,7 @@
return 1
q.qseries(repo, start=end, length=1, summary=opts.get('summary'))
- at command("qprev", [] + seriesopts, _('hg qprev [-s]'))
+ at command("qprev", seriesopts, _('hg qprev [-s]'))
def prev(ui, repo, **opts):
"""print the name of the previous patch
More information about the Mercurial-devel
mailing list