[PATCH 2 of 2] mq: flag as deprecated

Augie Fackler raf at durin42.com
Sat Jun 7 14:54:00 CDT 2014


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1398790621 14400
#      Tue Apr 29 12:57:01 2014 -0400
# Node ID 639a70111cffe127bbef74d219a4358323f52e1c
# Parent  b78de345e00af1f2f2ca88b98eaafe2ae05824c2
mq: flag as deprecated

hg config --edit now directs users to 'hg help extensions' to learn
more about extensions and see the available ones. Nearly everything
that can be done with mq can be done better and more safely using
rebase, histedit, and commit --amend. As such, hide mq from new users
so they won't accidentally find the glass that's in our sandbox.

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -5,7 +5,7 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-'''manage a stack of patches
+'''manage a stack of patches (DEPRECATED)
 
 This extension lets you work with a stack of patches in a Mercurial
 repository. It manages two stacks of patches - all known patches, and
diff --git a/tests/test-extension.t b/tests/test-extension.t
--- a/tests/test-extension.t
+++ b/tests/test-extension.t
@@ -569,11 +569,11 @@
       patchbomb     command to send changesets as (a series of) patch emails
   
   use "hg help extensions" for information on enabling extensions
-  $ hg qdel
-  hg: unknown command 'qdel'
-  'qdelete' is provided by the following extension:
+  $ hg histedit
+  hg: unknown command 'histedit'
+  'histedit' is provided by the following extension:
   
-      mq            manage a stack of patches
+      histedit      interactive history editing
   
   use "hg help extensions" for information on enabling extensions
   [255]
diff --git a/tests/test-help.t b/tests/test-help.t
--- a/tests/test-help.t
+++ b/tests/test-help.t
@@ -261,7 +261,6 @@
        histedit      interactive history editing
        keyword       expand keywords in tracked files
        largefiles    track large binary files
-       mq            manage a stack of patches
        notify        hooks for sending email push notifications
        pager         browse command output with an external pager
        patchbomb     command to send changesets as (a series of) patch emails
diff --git a/tests/test-mq.t b/tests/test-mq.t
--- a/tests/test-mq.t
+++ b/tests/test-mq.t
@@ -15,7 +15,7 @@
 help
 
   $ hg help mq
-  mq extension - manage a stack of patches
+  mq extension - manage a stack of patches (DEPRECATED)
   
   This extension lets you work with a stack of patches in a Mercurial
   repository. It manages two stacks of patches - all known patches, and applied


More information about the Mercurial-devel mailing list