# HG changeset patch # User Anton Shestakov # Date 1591172913 -28800 # Node ID a0e0352f96e0d06b021c6ec36388e80445aa6595 # Parent ce56d29c33828dc255c99e1e3ee0b103a7731bab tests: move hg clone above case description in test-rewind.t It makes more sense to move the cloning outside individual cases because each clone gets reused for multiple cases. The names of the clones were adjusted for this reason. diff -r ce56d29c3382 -r a0e0352f96e0 tests/test-rewind.t --- a/tests/test-rewind.t Thu May 28 12:08:59 2020 +0800 +++ b/tests/test-rewind.t Wed Jun 03 16:28:33 2020 +0800 @@ -49,10 +49,10 @@ Test rewinding to single changesets ==================================== - $ hg clone rewind-testing-base rewind-testing-simple-prune + $ hg clone rewind-testing-base rewind-testing-single-prunes updating to branch default 3 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ cd rewind-testing-simple-prune + $ cd rewind-testing-single-prunes Prune changeset unrelated to the working copy --------------------------------------------- @@ -246,16 +246,17 @@ $ cd .. + $ hg clone rewind-testing-base rewind-testing-single-amends + updating to branch default + 3 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ cd rewind-testing-single-amends + rewind a simple amend - creating content-divergence --------------------------------------------------- Setup ````` - $ hg clone rewind-testing-base rewind-testing-single-rewrite - updating to branch default - 3 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ cd rewind-testing-single-rewrite $ echo BB > B $ hg amend -m 'c_B1' $ hg log -G @@ -477,17 +478,17 @@ $ cd .. + $ hg clone rewind-testing-base rewind-testing-single-split-fold + updating to branch default + 3 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ cd rewind-testing-single-split-fold + rewind a simple split --------------------- Setup ````` - $ hg clone rewind-testing-base rewind-testing-split-fold - updating to branch default - 3 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ cd rewind-testing-split-fold - $ echo C > C $ echo D > D $ hg add C D