diff tests/test-uncommit.t @ 314:ebd286f06879

uncommit: add --all option Convenient when combined with --exclude.
author Patrick Mezard <patrick@mezard.eu>
date Sat, 23 Jun 2012 19:24:37 +0200
parents 47d10459fa24
children 4bbc17716f5a
line wrap: on
line diff
--- a/tests/test-uncommit.t	Tue Jun 26 16:12:52 2012 +0200
+++ b/tests/test-uncommit.t	Sat Jun 23 19:24:37 2012 +0200
@@ -277,3 +277,31 @@
   $ hg debugsuccessors
   5eb72dbe0cb4 c706fe2c12f8
   5eb72dbe0cb4 e8db4aa611f6
+
+Test --all
+
+  $ hg up -C 3
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  Working directory parent is obsolete
+  $ hg --config extensions.purge= purge
+  $ hg uncommit --all -X e
+  $ hg st --copies
+  M b
+  M d
+  M j
+  M o
+  A aa
+    a
+  A ff
+    f
+  A h
+    g
+  A k
+  A l
+  R c
+  R f
+  R g
+  R m
+  R n
+  $ hg st --copies --change .
+  A e