tests: in test-split.t, save a "clean" copy of pre-split repo for later use
authorKyle Lippincott <spectral@google.com>
Fri, 02 Feb 2018 14:21:04 -0800
changeset 38412 a0e185f10454
parent 38411 26523316e4d0
child 38413 96871ca32270
tests: in test-split.t, save a "clean" copy of pre-split repo for later use Differential Revision: https://phab.mercurial-scm.org/D2015
tests/test-split.t
--- a/tests/test-split.t	Mon Jun 18 16:01:06 2018 -0700
+++ b/tests/test-split.t	Fri Feb 02 14:21:04 2018 -0800
@@ -91,10 +91,11 @@
   $ hg forget dirty
   $ rm dirty
 
-Split a head
+Make a clean directory for future tests to build off of
 
-  $ cp -R . ../b
-  $ cp -R . ../c
+  $ cp -R . ../clean
+
+Split a head
 
   $ hg bookmark r3
 
@@ -263,6 +264,7 @@
 
 Split a head while working parent is not that head
 
+  $ cp -R $TESTTMP/clean $TESTTMP/b
   $ cd $TESTTMP/b
 
   $ hg up 0 -q
@@ -302,6 +304,7 @@
 
 Split a non-head
 
+  $ cp -R $TESTTMP/clean $TESTTMP/c
   $ cd $TESTTMP/c
   $ echo d > d
   $ hg ci -m d1 -A d