changeset 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
files hgext/mq.py tests/test-mq.out
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
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:
--- a/tests/test-mq.out	Sun Feb 07 12:34:02 2010 +0100
+++ b/tests/test-mq.out	Sun Feb 07 13:49:52 2010 +0100
@@ -37,7 +37,6 @@
 
  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 @@
  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