diff tests/test-mq.t @ 12036:31f02288bbc4

mq: extend support for the --mq argument to extension commands This allows commands like `purge' to accept the --mq option.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 13 Aug 2010 16:05:08 +0200
parents 863567a1364f
children fddacca3202e
line wrap: on
line diff
--- a/tests/test-mq.t	Sun Aug 22 13:17:34 2010 +0200
+++ b/tests/test-mq.t	Fri Aug 13 16:05:08 2010 +0200
@@ -170,6 +170,10 @@
   A
   B
 
+add an untracked file
+
+  $ echo >> .hg/patches/flaf
+
 status --mq with color (issue2096)
 
   $ hg status --mq --config extensions.color= --color=always
@@ -177,9 +181,15 @@
   A A
   A B
   A series
+  ? flaf
+
+try the --mq option on a command provided by an extension
+
+  $ hg purge --mq --verbose --config extensions.purge=
+  Removing file flaf
+
   $ cd ..
 
-
 init --mq without repo
 
   $ mkdir f