# HG changeset patch # User Dirkjan Ochtman # Date 2010-02-07 12:49:52 # Node ID 49cd2e7fd91c85b14d0415f3ee8ae76b0abdb5d1 # Parent bcf90e712dc36a91b4df0d4a672b09fea107a6a3 mq: deprecate qinit and qcommit diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1826,13 +1826,16 @@ def qimport(ui, repo, *filename, **opts) return 0 def init(ui, repo, **opts): - """init a new queue repository + """init a new queue repository (DEPRECATED) The queue repository is unversioned by default. If -c/--create-repo is specified, qinit will create a separate nested repository for patches (qinit -c may also be run later to convert an unversioned patch repository into a versioned one). You can use - qcommit to commit changes to this queue repository.""" + qcommit to commit changes to this queue repository. + + This command is depreacted. Without -c, it's implied by other relevant + commands. With -c, use hg -Q init instead.""" q = repo.mq r = q.init(repo, create=opts['create_repo']) q.save_dirty() @@ -1916,7 +1919,9 @@ def clone(ui, source, dest=None, **opts) hg.update(dr, dr.changelog.tip()) def commit(ui, repo, *pats, **opts): - """commit changes in the queue repository""" + """commit changes in the queue repository (DEPRECATED) + + This command is deprecated; use hg -Q commit instead.""" q = repo.mq r = q.qrepo() if not r: diff --git a/tests/test-mq.out b/tests/test-mq.out --- a/tests/test-mq.out +++ b/tests/test-mq.out @@ -37,7 +37,6 @@ list of commands: qapplied print the patches already applied qclone clone main and patch repository at same time - qcommit commit changes in the queue repository qdelete remove patches from queue qdiff diff of the current patch and subsequent modifications qfinish move applied patches into repository history @@ -46,7 +45,6 @@ list of commands: qguard set or print guards for a patch qheader print the header of the topmost or specified patch qimport import a patch - qinit init a new queue repository qnew create a new patch qnext print the name of the next patch qpop pop the current patch off the stack