[PATCH STABLE] test-commit: remove extra cd

Adrian Buehlmann adrian at cadifra.com
Sat Jun 9 07:21:48 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1339244425 -7200
# Branch stable
# Node ID 29b9c207b4133c0aa7017bffa57609b0fa07f3f3
# Parent  15159abc5ab68050e9a19cc1c74240a937dd1a85
test-commit: remove extra cd ..

This specific cd .. leaves the base directory of the test ($TESTTMP).

Removing it avoids that test artifacts (e.g. files) are created
outside of the base directory.

diff --git a/tests/test-commit.t b/tests/test-commit.t
--- a/tests/test-commit.t
+++ b/tests/test-commit.t
@@ -220,7 +220,6 @@
 
 Issue1049: Hg permits partial commit of merge without warning
 
-  $ cd ..
   $ hg init issue1049
   $ cd issue1049
   $ echo a > a


More information about the Mercurial-devel mailing list