tests/test-prune.t
changeset 1221 524dbc8ffeac
parent 1220 71240f696f26
child 1239 8a06b32061ce
--- a/tests/test-prune.t	Thu Mar 19 12:31:51 2015 -0700
+++ b/tests/test-prune.t	Fri Mar 20 12:51:57 2015 -0700
@@ -238,6 +238,20 @@
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/c7e58696a948-69ca36d3-backup.hg (glob)
 
+test hg prune --keep
+  $ mkcommit n1
+  created new head
+  $ hg diff -r .^
+  diff -r aa96dc3f04c2 n1
+  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+  +++ b/n1	* +0000 (glob)
+  @@ -0,0 +1,1 @@
+  +n1
+  $ hg prune -r . --keep
+  1 changesets pruned
+  $ hg status
+  ? n1
+
 test hg prune -B bookmark
 yoinked from test-mq-strip.t