mq: define norepo in command decorator
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 04 May 2014 22:04:14 -0700
changeset 21771 0f3353776038
parent 21770 15d434bee41c
child 21772 5a4d1a6c605f
mq: define norepo in command decorator
hgext/mq.py
--- a/hgext/mq.py	Sun May 04 21:11:15 2014 -0700
+++ b/hgext/mq.py	Sun May 04 22:04:14 2014 -0700
@@ -72,8 +72,6 @@
 from mercurial import subrepo
 import os, re, errno, shutil
 
-commands.norepo += " qclone"
-
 seriesopts = [('s', 'summary', None, _('print first line of patch header'))]
 
 cmdtable = {}
@@ -2255,7 +2253,8 @@
           ('p', 'patches', '',
            _('location of source patch repository'), _('REPO')),
          ] + commands.remoteopts,
-         _('hg qclone [OPTION]... SOURCE [DEST]'))
+         _('hg qclone [OPTION]... SOURCE [DEST]'),
+         norepo=True)
 def clone(ui, source, dest=None, **opts):
     '''clone main and patch repository at same time