[PATCH 1 of 2] tests: flatten repo structure in test-commit.t

Anton Shestakov av6 at dwimlabs.net
Sat May 4 04:46:57 UTC 2019


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1556863634 -28800
#      Fri May 03 14:07:14 2019 +0800
# Node ID 49d7c0579df397ff05941d09ce97967e6ca9d53e
# Parent  fdbeacb9d456c0b98b00df66a9921fd884826cf1
# EXP-Topic post-commit-status
tests: flatten repo structure in test-commit.t

Let's move to parent directory before `hg init` repos, since they don't need to
be nested. It makes amend/strip messages that include full path to the backup
bundle shorter, for instance.

diff --git a/tests/test-commit.t b/tests/test-commit.t
--- a/tests/test-commit.t
+++ b/tests/test-commit.t
@@ -708,6 +708,8 @@ verify pathauditor blocks evil filepaths
   abort: path contains illegal component: HG8B6C~2/hgrc
   [255]
 
+  $ cd ..
+
 # test that an unmodified commit template message aborts
 
   $ hg init unmodified_commit_template
@@ -734,6 +736,8 @@ verify pathauditor blocks evil filepaths
   abort: commit message unchanged
   [255]
 
+  $ cd ..
+
 test that text below the --- >8 --- special string is ignored
 
   $ cat <<'EOF' > $TESTTMP/lowercaseline.sh


More information about the Mercurial-devel mailing list