prev: stop creating a repository at the root of 'test-repo.t'
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 14 Jul 2017 01:21:32 +0200
changeset 2737 66278c4d9c07
parent 2736 3c87d5276394
child 2738 3f27fe80be26
prev: stop creating a repository at the root of 'test-repo.t' We run the test in a subdirectory now, this usually avoid various kind of future issue.
tests/test-prev-next.t
--- a/tests/test-prev-next.t	Fri Jul 14 01:12:20 2017 +0200
+++ b/tests/test-prev-next.t	Fri Jul 14 01:21:32 2017 +0200
@@ -5,7 +5,8 @@
   $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH
 
 hg prev -B should move active bookmark
-  $ hg init
+  $ hg init test-repo
+  $ cd test-repo
   $ touch a
   $ hg add a
   $ hg commit -m 'added a'
@@ -216,6 +217,8 @@
   atop:[6] added b (3)
   working directory is now at 47ea25be8aea
 
+  $ cd ..
+
 prev and next should lock properly against other commands
 
   $ hg init repo