Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 10361:49cd2e7fd91c
mq: deprecate qinit and qcommit
author | Dirkjan Ochtman <djc.ochtman@kentyde.com> |
---|---|
date | Sun, 07 Feb 2010 13:49:52 +0100 |
parents | bcf90e712dc3 |
children | 2e3ec7ef5349 |
line wrap: on
line diff
--- a/hgext/mq.py Sun Feb 07 12:34:02 2010 +0100 +++ b/hgext/mq.py Sun Feb 07 13:49:52 2010 +0100 @@ -1826,13 +1826,16 @@ 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 @@ 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: