# HG changeset patch # User Anton Shestakov # Date 1563876340 -28800 # Node ID d842a4c6fc4a35bf453f1a39f711427b9bade7cb # Parent 316d910df72c25f35f6f342f2f809422d06c9960 tests: separate rewinding of merge commits, temporarily drop an error case The error case will come back in the following commit, because it organically fits there without the need of a separate working clone. diff -r 316d910df72c -r d842a4c6fc4a tests/test-rewind.t --- a/tests/test-rewind.t Wed Aug 07 15:22:16 2019 +0200 +++ b/tests/test-rewind.t Tue Jul 23 18:05:40 2019 +0800 @@ -924,25 +924,11 @@ $ cd .. -Check error cases -================= - - $ hg clone rewind-testing-base rewind-testing-error - updating to branch default - 3 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ cd rewind-testing-error +Merge commits +============= -Uncommited changes ------------------- - - $ echo C > C - $ hg add C - $ hg rewind - abort: uncommitted changes - [255] - -Merge commits -------------- + $ hg clone -q rewind-testing-base rewind-merge + $ cd rewind-merge $ hg up --clean .^ 0 files updated, 0 files merged, 1 files removed, 0 files unresolved @@ -965,7 +951,7 @@ $ hg rewind --from . rewinded to 1 changesets (1 changesets obsoleted) - working directory is now at 006fd8c2fed9 + working directory is now at 9d325190bd87 $ hg st --change . A B @@ -976,9 +962,11 @@ | |/ +---x 4: merge () | |/ - | o 3: foo (C foo) + | o 3: foo (foo) | | | ~ o 2: c_B0 (B) | ~ + + $ cd ..