mq: no need to make a copy of seriesopts
the command decorator takes care of copying the
options (introduced in 5b48ad1e7f1a)
--- a/hgext/mq.py Fri May 27 21:11:44 2011 +0200
+++ 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
-@command("qtop", [] + seriesopts, _('hg qtop [-s]'))
+@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
-@command("qnext", [] + seriesopts, _('hg qnext [-s]'))
+@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'))
-@command("qprev", [] + seriesopts, _('hg qprev [-s]'))
+@command("qprev", seriesopts, _('hg qprev [-s]'))
def prev(ui, repo, **opts):
"""print the name of the previous patch