Mercurial > hg
changeset 14468:755aabb3eada
mq: no need to make a copy of seriesopts
the command decorator takes care of copying the
options (introduced in 5b48ad1e7f1a)
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Mon, 30 May 2011 21:44:03 +0300 |
parents | f3b50431eb7e |
children | a21246c7e7d7 |
files | hgext/mq.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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