Patchwork [evolve-ext] evolve: add a test for prune --keep -r . with active bookmark

login
register
mail settings
Submitter Laurent Charignon
Date May 20, 2015, 8:32 p.m.
Message ID <911646336445f5d84d77.1432153976@lcharignon-mbp.local>
Download mbox | patch
Permalink /patch/9197/
State Accepted
Headers show

Comments

Laurent Charignon - May 20, 2015, 8:32 p.m.
# HG changeset patch
# User Laurent Charignon <lcharignon@fb.com>
# Date 1432153952 25200
#      Wed May 20 13:32:32 2015 -0700
# Node ID 911646336445f5d84d77317656005abd7c991c45
# Parent  376d3df9f47bbc704b1bebb31ebeb31c6fe63192
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.
Pierre-Yves David - May 20, 2015, 9:07 p.m.
On 05/20/2015 03:32 PM, Laurent Charignon wrote:
> # HG changeset patch
> # User Laurent Charignon <lcharignon@fb.com>
> # Date 1432153952 25200
> #      Wed May 20 13:32:32 2015 -0700
> # Node ID 911646336445f5d84d77317656005abd7c991c45
> # Parent  376d3df9f47bbc704b1bebb31ebeb31c6fe63192
> evolve: add a test for prune --keep -r . with active bookmark

nice, pushed to main.

Patch

diff --git a/tests/test-prune.t b/tests/test-prune.t
--- a/tests/test-prune.t
+++ b/tests/test-prune.t
@@ -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
+