changeset 5448:a0e0352f96e0

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.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 03 Jun 2020 16:28:33 +0800
parents ce56d29c3382
children ab5e857506ef
files tests/test-rewind.t
diffstat 1 files changed, 12 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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