hgext/mq.py
changeset 10361 49cd2e7fd91c
parent 10360 bcf90e712dc3
child 10362 2e3ec7ef5349
equal deleted inserted replaced
10360:bcf90e712dc3 10361:49cd2e7fd91c
  1824     if opts.get('push') and not opts.get('rev'):
  1824     if opts.get('push') and not opts.get('rev'):
  1825         return q.push(repo, None)
  1825         return q.push(repo, None)
  1826     return 0
  1826     return 0
  1827 
  1827 
  1828 def init(ui, repo, **opts):
  1828 def init(ui, repo, **opts):
  1829     """init a new queue repository
  1829     """init a new queue repository (DEPRECATED)
  1830 
  1830 
  1831     The queue repository is unversioned by default. If
  1831     The queue repository is unversioned by default. If
  1832     -c/--create-repo is specified, qinit will create a separate nested
  1832     -c/--create-repo is specified, qinit will create a separate nested
  1833     repository for patches (qinit -c may also be run later to convert
  1833     repository for patches (qinit -c may also be run later to convert
  1834     an unversioned patch repository into a versioned one). You can use
  1834     an unversioned patch repository into a versioned one). You can use
  1835     qcommit to commit changes to this queue repository."""
  1835     qcommit to commit changes to this queue repository.
       
  1836 
       
  1837     This command is depreacted. Without -c, it's implied by other relevant
       
  1838     commands. With -c, use hg -Q init instead."""
  1836     q = repo.mq
  1839     q = repo.mq
  1837     r = q.init(repo, create=opts['create_repo'])
  1840     r = q.init(repo, create=opts['create_repo'])
  1838     q.save_dirty()
  1841     q.save_dirty()
  1839     if r:
  1842     if r:
  1840         if not os.path.exists(r.wjoin('.hgignore')):
  1843         if not os.path.exists(r.wjoin('.hgignore')):
  1914         if not opts['noupdate']:
  1917         if not opts['noupdate']:
  1915             ui.note(_('updating destination repository\n'))
  1918             ui.note(_('updating destination repository\n'))
  1916             hg.update(dr, dr.changelog.tip())
  1919             hg.update(dr, dr.changelog.tip())
  1917 
  1920 
  1918 def commit(ui, repo, *pats, **opts):
  1921 def commit(ui, repo, *pats, **opts):
  1919     """commit changes in the queue repository"""
  1922     """commit changes in the queue repository (DEPRECATED)
       
  1923 
       
  1924     This command is deprecated; use hg -Q commit instead."""
  1920     q = repo.mq
  1925     q = repo.mq
  1921     r = q.qrepo()
  1926     r = q.qrepo()
  1922     if not r:
  1927     if not r:
  1923         raise util.Abort('no queue repository')
  1928         raise util.Abort('no queue repository')
  1924     commands.commit(r.ui, r, *pats, **opts)
  1929     commands.commit(r.ui, r, *pats, **opts)