--- a/tests/test-uncommit.t Thu Aug 14 15:26:55 2014 -0700
+++ b/tests/test-uncommit.t Fri Aug 15 00:46:23 2014 -0700
@@ -336,3 +336,25 @@
[8] touncommit
$ hg uncommit aa
1 new unstable changesets
+
+Test uncommiting agains a different base
+
+ $ hg cat b --rev .
+ b
+ b
+ $ hg cat b --rev .^
+ b
+ $ hg cat b --rev 0
+ b: no such file in rev 07f494440405
+ [1]
+ $ hg uncommit --rev 0 b
+ $ hg cat b --rev .
+ b: no such file in rev 5b27f6b17da2
+ [1]
+
+Test uncommiting precursors
+
+ $ hg uncommit --hidden --rev 'precursors(.)' b
+ $ hg cat b --rev .
+ b
+ b