hgext/mq.py
branchstable
changeset 10591 ff2704a8ded3
parent 10589 92b8c79b34c2
child 10611 e764f24a45ee
child 10689 3b3bf520b428
equal deleted inserted replaced
10590:5faf3566c96d 10591:ff2704a8ded3
  1862     repository for patches (qinit -c may also be run later to convert
  1862     repository for patches (qinit -c may also be run later to convert
  1863     an unversioned patch repository into a versioned one). You can use
  1863     an unversioned patch repository into a versioned one). You can use
  1864     qcommit to commit changes to this queue repository.
  1864     qcommit to commit changes to this queue repository.
  1865 
  1865 
  1866     This command is deprecated. Without -c, it's implied by other relevant
  1866     This command is deprecated. Without -c, it's implied by other relevant
  1867     commands. With -c, use hg init -Q instead."""
  1867     commands. With -c, use hg init --mq instead."""
  1868     return qinit(ui, repo, create=opts['create_repo'])
  1868     return qinit(ui, repo, create=opts['create_repo'])
  1869 
  1869 
  1870 def clone(ui, source, dest=None, **opts):
  1870 def clone(ui, source, dest=None, **opts):
  1871     '''clone main and patch repository at same time
  1871     '''clone main and patch repository at same time
  1872 
  1872 
  1932             hg.update(dr, dr.changelog.tip())
  1932             hg.update(dr, dr.changelog.tip())
  1933 
  1933 
  1934 def commit(ui, repo, *pats, **opts):
  1934 def commit(ui, repo, *pats, **opts):
  1935     """commit changes in the queue repository (DEPRECATED)
  1935     """commit changes in the queue repository (DEPRECATED)
  1936 
  1936 
  1937     This command is deprecated; use hg -Q commit instead."""
  1937     This command is deprecated; use hg --mq commit instead."""
  1938     q = repo.mq
  1938     q = repo.mq
  1939     r = q.qrepo()
  1939     r = q.qrepo()
  1940     if not r:
  1940     if not r:
  1941         raise util.Abort('no queue repository')
  1941         raise util.Abort('no queue repository')
  1942     commands.commit(r.ui, r, *pats, **opts)
  1942     commands.commit(r.ui, r, *pats, **opts)
  2652     if not r:
  2652     if not r:
  2653         raise util.Abort('no queue repository')
  2653         raise util.Abort('no queue repository')
  2654     return orig(r.ui, r, *args, **kwargs)
  2654     return orig(r.ui, r, *args, **kwargs)
  2655 
  2655 
  2656 def uisetup(ui):
  2656 def uisetup(ui):
  2657     mqopt = [('Q', 'mq', None, _("operate on patch repository"))]
  2657     mqopt = [('', 'mq', None, _("operate on patch repository"))]
  2658 
  2658 
  2659     extensions.wrapcommand(commands.table, 'import', mqimport)
  2659     extensions.wrapcommand(commands.table, 'import', mqimport)
  2660 
  2660 
  2661     entry = extensions.wrapcommand(commands.table, 'init', mqinit)
  2661     entry = extensions.wrapcommand(commands.table, 'init', mqinit)
  2662     entry[1].extend(mqopt)
  2662     entry[1].extend(mqopt)