# HG changeset patch # User Idan Kamara # Date 2011-05-30 18:44:03 # Node ID 755aabb3eada7bfa2f48c256343060aad1a38cb3 # Parent f3b50431eb7e9a7a2b847edced7230a70e695113 mq: no need to make a copy of seriesopts the command decorator takes care of copying the options (introduced in 5b48ad1e7f1a) diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -2126,7 +2126,7 @@ def series(ui, repo, **opts): 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 @@ def top(ui, repo, **opts): 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 @@ def next(ui, repo, **opts): 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