# HG changeset patch # User Pulkit Goyal # Date 1534604081 -19800 # Node ID d081528bb372f471ba18494c82a5a37a3b0d3488 # Parent ea7687a9a4b86df189bc78501434973b251df8fc tests: demonstrate the interrupted evolve does not set p2 This patch adds a test to demonstrate issue5927 which is about evolving not setting p2 correctly in interruption. diff -r ea7687a9a4b8 -r d081528bb372 tests/test-evolve-abort-contentdiv.t --- a/tests/test-evolve-abort-contentdiv.t Fri Aug 17 16:26:44 2018 +0200 +++ b/tests/test-evolve-abort-contentdiv.t Sat Aug 18 20:24:41 2018 +0530 @@ -96,6 +96,22 @@ # To stop: hg evolve --stop # (also see `hg help evolve.interrupted`) + $ hg parents + changeset: 6:9c1631e352d9 + tag: tip + parent: 3:ca1b80f7960a + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + instability: content-divergent + summary: added d + + changeset: 5:e49523854bc8 + parent: 3:ca1b80f7960a + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + instability: content-divergent + summary: added d + $ hg evolve --abort evolve aborted diff -r ea7687a9a4b8 -r d081528bb372 tests/test-evolve-abort-orphan.t --- a/tests/test-evolve-abort-orphan.t Fri Aug 17 16:26:44 2018 +0200 +++ b/tests/test-evolve-abort-orphan.t Sat Aug 18 20:24:41 2018 +0530 @@ -88,6 +88,15 @@ fix conflicts and see `hg help evolve.interrupted` [1] + $ hg parents + changeset: 5:e93a9161a274 + tag: tip + parent: 2:b1661037fa25 + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: added c + + $ hg evolve --abort evolve aborted working directory is now at e93a9161a274 diff -r ea7687a9a4b8 -r d081528bb372 tests/test-evolve-abort-phasediv.t --- a/tests/test-evolve-abort-phasediv.t Fri Aug 17 16:26:44 2018 +0200 +++ b/tests/test-evolve-abort-phasediv.t Sat Aug 18 20:24:41 2018 +0530 @@ -108,6 +108,13 @@ # (also see `hg help evolve.interrupted`) + $ hg parents + changeset: 3:ca1b80f7960a + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: added c + + $ hg evolve --abort evolve aborted working directory is now at ddba58020bc0