changeset 1345:37c505975e28

evolve: add a test for prune --keep -r . with active bookmark We recently changed the behavior of prune to make sure that the active bookmark stays active after prune -r . This patch adds a test for the case of prune --keep -r . that does not take the same code path.
author Laurent Charignon <lcharignon@fb.com>
date Wed, 20 May 2015 13:32:32 -0700
parents 376d3df9f47b
children 9a1415f8b21b
files tests/test-prune.t
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-prune.t	Wed May 20 13:23:20 2015 -0700
+++ b/tests/test-prune.t	Wed May 20 13:32:32 2015 -0700
@@ -361,3 +361,12 @@
   |/
   o  0:1ea73414a91b[] (stable/draft) r0
   
+  $ hg book CELESTE
+  $ hg prune -r . --keep
+  1 changesets pruned
+  $ hg book
+     B                         8:d62d843c9a01
+   * CELESTE                   8:d62d843c9a01
+     r10                       8:d62d843c9a01
+     rg                        8:d62d843c9a01
+