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 June 19, 2018, 8:53 p.m.
Message ID <2d717f06bece50e2e7d679e46f421aa9@localhost.localdomain>
Download mbox | patch
Permalink /patch/32333/
State Not Applicable
Headers show

Comments

phabricator - June 19, 2018, 8:53 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa0e185f10454: tests: in test-split.t, save a &quot;clean&quot; copy of pre-split repo for later use (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

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

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