Patchwork D2015: tests: in test-split.t, save a "clean" copy of pre-split repo for later use

login
register
mail settings
Submitter phabricator
Date July 2, 2018, 12:04 p.m.
Message ID <6a9a3f41aab8812bbde38c81843b61d9@localhost.localdomain>
Download mbox | patch
Permalink /patch/32561/
State Not Applicable
Headers show

Comments

phabricator - July 2, 2018, 12:04 p.m.
sangeet259 updated this revision to Diff 9403.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2015?vs=9229&id=9403

REVISION DETAIL
  https://phab.mercurial-scm.org/D2015

AFFECTED FILES
  tests/test-split.t

CHANGE DETAILS




To: spectral, #hg-reviewers, martinvonz
Cc: martinvonz, mercurial-devel

Patch

diff --git a/tests/test-split.t b/tests/test-split.t
--- a/tests/test-split.t
+++ b/tests/test-split.t
@@ -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