hgext/mq.py
changeset 21771 0f3353776038
parent 21714 635a8201e356
child 21786 c85a0c3537b2
equal deleted inserted replaced
21770:15d434bee41c 21771:0f3353776038
    69 from mercurial import extensions, error, phases
    69 from mercurial import extensions, error, phases
    70 from mercurial import patch as patchmod
    70 from mercurial import patch as patchmod
    71 from mercurial import localrepo
    71 from mercurial import localrepo
    72 from mercurial import subrepo
    72 from mercurial import subrepo
    73 import os, re, errno, shutil
    73 import os, re, errno, shutil
    74 
       
    75 commands.norepo += " qclone"
       
    76 
    74 
    77 seriesopts = [('s', 'summary', None, _('print first line of patch header'))]
    75 seriesopts = [('s', 'summary', None, _('print first line of patch header'))]
    78 
    76 
    79 cmdtable = {}
    77 cmdtable = {}
    80 command = cmdutil.command(cmdtable)
    78 command = cmdutil.command(cmdtable)
  2253           ('', 'uncompressed', None,
  2251           ('', 'uncompressed', None,
  2254            _('use uncompressed transfer (fast over LAN)')),
  2252            _('use uncompressed transfer (fast over LAN)')),
  2255           ('p', 'patches', '',
  2253           ('p', 'patches', '',
  2256            _('location of source patch repository'), _('REPO')),
  2254            _('location of source patch repository'), _('REPO')),
  2257          ] + commands.remoteopts,
  2255          ] + commands.remoteopts,
  2258          _('hg qclone [OPTION]... SOURCE [DEST]'))
  2256          _('hg qclone [OPTION]... SOURCE [DEST]'),
       
  2257          norepo=True)
  2259 def clone(ui, source, dest=None, **opts):
  2258 def clone(ui, source, dest=None, **opts):
  2260     '''clone main and patch repository at same time
  2259     '''clone main and patch repository at same time
  2261 
  2260 
  2262     If source is local, destination will have no patches applied. If
  2261     If source is local, destination will have no patches applied. If
  2263     source is remote, this command can not check if patches are
  2262     source is remote, this command can not check if patches are