D2015: tests: in test-split.t, save a "clean" copy of pre-split repo for later use
spectral (Kyle Lippincott)
phabricator at mercurial-scm.org
Fri Feb 2 23:40:27 UTC 2018
spectral created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2015
AFFECTED FILES
tests/test-split.t
CHANGE DETAILS
diff --git a/tests/test-split.t b/tests/test-split.t
--- a/tests/test-split.t
+++ b/tests/test-split.t
@@ -90,10 +90,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
@@ -262,6 +263,7 @@
Split a head while working parent is not that head
+ $ cp -R $TESTTMP/clean $TESTTMP/b
$ cd $TESTTMP/b
$ hg up 0 -q
@@ -301,6 +303,7 @@
Split a non-head
+ $ cp -R $TESTTMP/clean $TESTTMP/c
$ cd $TESTTMP/c
$ echo d > d
$ hg ci -m d1 -A d
To: spectral, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list