Patchwork [19,of,35] mq: define norepo in command decorator

mail settings
Submitter Gregory Szorc
Date May 5, 2014, 5:51 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/4610/
State Accepted
Commit 0f3353776038ee65c003f09b5d77da775ad97340
Headers show


Gregory Szorc - May 5, 2014, 5:51 a.m.
# HG changeset patch
# User Gregory Szorc <>
# Date 1399266254 25200
#      Sun May 04 22:04:14 2014 -0700
# Branch stable
# Node ID 06022ecb8a3946de0a94eddee9d0e32115d1fd6e
# Parent  aecdc36b9f715454721fe015b9cfd96d573bca79
mq: define norepo in command decorator


diff --git a/hgext/ b/hgext/
--- a/hgext/
+++ b/hgext/
@@ -67,18 +67,16 @@  from mercurial.node import bin, hex, sho
 from mercurial.lock import release
 from mercurial import commands, cmdutil, hg, scmutil, util, revset
 from mercurial import extensions, error, phases
 from mercurial import patch as patchmod
 from mercurial import localrepo
 from mercurial import subrepo
 import os, re, errno, shutil
-commands.norepo += " qclone"
 seriesopts = [('s', 'summary', None, _('print first line of patch header'))]
 cmdtable = {}
 command = cmdutil.command(cmdtable)
 testedwith = 'internal'
 # force load strip extension formerly included in mq and import some utility
@@ -2223,17 +2221,18 @@  def init(ui, repo, **opts):
          [('', 'pull', None, _('use pull protocol to copy metadata')),
           ('U', 'noupdate', None,
            _('do not update the new working directories')),
           ('', 'uncompressed', None,
            _('use uncompressed transfer (fast over LAN)')),
           ('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
     If source is local, destination will have no patches applied. If
     source is remote, this command can not check if patches are
     applied in source, so cannot guarantee that patches are not
     applied in destination. If you clone remote repository, be sure
     before that it has no patches applied.