Mercurial > hg
changeset 49621:55c6ebd11cb9 stable
tests: run many tests in $TESTTMP/repo instead of $TESTTMP
This is useful so we can store other files in $TESTTMP
(in particular tests that use docket files (nodemap, dirstate-v2) keep
file uids in $TESTTMP/UID)
line wrap: on
line diff
--- a/tests/test-audit-path.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-audit-path.t Fri Nov 18 13:47:29 2022 +0000 @@ -2,7 +2,8 @@ with periods, etc. So much of this test fails with it. #require no-reposimplestore - $ hg init + $ hg init repo + $ cd repo audit of .hg
--- a/tests/test-backwards-remove.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-backwards-remove.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo This is file a1 > a $ hg add a $ hg commit -m "commit #0"
--- a/tests/test-bisect.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-bisect.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,5 +1,5 @@ - $ hg init - + $ hg init repo + $ cd repo committing changes @@ -460,7 +460,7 @@ test bisecting command - $ cat > script.py <<EOF + $ cat > "$TESTTMP/script.py" <<EOF > #!$PYTHON > import sys > from mercurial import hg, ui as uimod @@ -468,7 +468,7 @@ > if repo[b'.'].rev() < 6: > sys.exit(1) > EOF - $ chmod +x script.py + $ chmod +x "$TESTTMP/script.py" $ hg bisect -r $ hg up -qr tip $ hg bisect --command "\"$PYTHON\" \"$TESTTMP/script.py\" and some parameters" @@ -497,7 +497,7 @@ $ hg update null 0 files updated, 0 files merged, 1 files removed, 0 files unresolved - $ cat > script.sh <<'EOF' + $ cat > "$TESTTMP/script.sh" <<'EOF' > #!/bin/sh > test -n "$HG_NODE" || (echo HG_NODE missing; exit 127) > current="`hg log -r \"bisect(current)\" --template {node}`" @@ -505,7 +505,7 @@ > rev="`hg log -r $HG_NODE --template {rev}`" > test "$rev" -ge 6 > EOF - $ chmod +x script.sh + $ chmod +x "$TESTTMP/script.sh" $ hg bisect -r $ hg bisect --good tip --noupdate $ hg bisect --bad 0 --noupdate @@ -530,7 +530,7 @@ test the same case, this time with updating - $ cat > script.sh <<'EOF' + $ cat > "$TESTTMP/script.sh" <<'EOF' > #!/bin/sh > test -n "$HG_NODE" || (echo HG_NODE missing; exit 127) > current="`hg log -r \"bisect(current)\" --template {node}`" @@ -538,7 +538,7 @@ > rev="`hg log -r . --template {rev}`" > test "$rev" -ge 6 > EOF - $ chmod +x script.sh + $ chmod +x "$TESTTMP/script.sh" $ hg bisect -r $ hg up -qr tip $ hg bisect --command "sh \"$TESTTMP/script.sh\" and some params"
--- a/tests/test-bookmarks-current.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-bookmarks-current.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo no bookmarks
--- a/tests/test-bookmarks-merge.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-bookmarks-merge.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ # init - $ hg init + $ hg init repo + $ cd repo $ echo a > a $ hg add a $ hg commit -m'a'
--- a/tests/test-bookmarks-rebase.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-bookmarks-rebase.t Fri Nov 18 13:47:29 2022 +0000 @@ -3,7 +3,8 @@ initialize repository - $ hg init + $ hg init repo + $ cd repo $ echo 'a' > a $ hg ci -A -m "0" @@ -38,7 +39,7 @@ $ hg rebase -s two -d one rebasing 3:2ae46b1d99a7 two tip "3" - saved backup bundle to $TESTTMP/.hg/strip-backup/2ae46b1d99a7-e6b057bc-rebase.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/2ae46b1d99a7-e6b057bc-rebase.hg $ hg log changeset: 3:42e5ed2cdcf4
--- a/tests/test-cat.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-cat.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo 0 > a $ echo 0 > b $ hg ci -A -m m
--- a/tests/test-clone-update-order.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-clone-update-order.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo foo > bar $ hg commit -Am default adding bar
--- a/tests/test-commit-amend.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-commit-amend.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo Setup: @@ -36,7 +37,7 @@ $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit --amend -m 'amend base1' pretxncommit 43f1ba15f28a50abf0aae529cf8a16bfced7b149 43f1ba15f28a tip - saved backup bundle to $TESTTMP/.hg/strip-backup/489edb5b847d-5ab4f721-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/489edb5b847d-5ab4f721-amend.hg $ echo 'pretxncommit.foo = ' >> $HGRCPATH $ hg diff -c . diff -r ad120869acf0 -r 43f1ba15f28a a @@ -94,7 +95,7 @@ Add new file along with modified existing file: $ hg ci --amend -m 'amend base1 new file' - saved backup bundle to $TESTTMP/.hg/strip-backup/43f1ba15f28a-007467c2-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/43f1ba15f28a-007467c2-amend.hg Remove file that was added in amended commit: (and test logfile option) @@ -103,7 +104,7 @@ $ hg rm b $ echo 'amend base1 remove new file' > ../logfile $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg ci --amend --logfile ../logfile - saved backup bundle to $TESTTMP/.hg/strip-backup/c16295aaf401-1ada9901-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/c16295aaf401-1ada9901-amend.hg $ hg cat b b: no such file in rev 47343646fa3d @@ -123,7 +124,7 @@ 254 (changelog) 163 (manifests) 131 a - saved backup bundle to $TESTTMP/.hg/strip-backup/47343646fa3d-c2758885-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/47343646fa3d-c2758885-amend.hg 1 changesets found uncompressed size of bundle content: 250 (changelog) @@ -170,10 +171,10 @@ > EOF $ HGEDITOR="sh .hg/checkeditform.sh" hg ci --amend -u foo -d '1 0' HGEDITFORM=commit.amend.normal - saved backup bundle to $TESTTMP/.hg/strip-backup/401431e913a1-5e8e532c-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/401431e913a1-5e8e532c-amend.hg $ echo a >> a $ hg ci --amend -u foo -d '1 0' - saved backup bundle to $TESTTMP/.hg/strip-backup/d96b1d28ae33-677e0afb-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d96b1d28ae33-677e0afb-amend.hg $ hg log -r . changeset: 1:a9a13940fc03 tag: tip @@ -267,7 +268,7 @@ 249 (changelog) 163 (manifests) 133 a - saved backup bundle to $TESTTMP/.hg/strip-backup/a9a13940fc03-7c2e8674-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/a9a13940fc03-7c2e8674-amend.hg 1 changesets found uncompressed size of bundle content: 257 (changelog) @@ -303,7 +304,7 @@ 257 (changelog) 163 (manifests) 133 a - saved backup bundle to $TESTTMP/.hg/strip-backup/64a124ba1b44-10374b8f-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/64a124ba1b44-10374b8f-amend.hg 1 changesets found uncompressed size of bundle content: 257 (changelog) @@ -330,13 +331,13 @@ $ hg book book1 $ hg book book2 $ hg ci --amend -m 'move bookmarks' - saved backup bundle to $TESTTMP/.hg/strip-backup/7892795b8e38-3fb46217-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/7892795b8e38-3fb46217-amend.hg $ hg book book1 1:8311f17e2616 * book2 1:8311f17e2616 $ echo a >> a $ hg ci --amend -m 'move bookmarks' - saved backup bundle to $TESTTMP/.hg/strip-backup/8311f17e2616-f0504fe3-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/8311f17e2616-f0504fe3-amend.hg $ hg book book1 1:a3b65065808c * book2 1:a3b65065808c @@ -370,7 +371,7 @@ $ hg branch default -f marked working directory as branch default $ hg ci --amend -m 'back to default' - saved backup bundle to $TESTTMP/.hg/strip-backup/f8339a38efe1-c18453c9-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/f8339a38efe1-c18453c9-amend.hg $ hg branches default 2:9c07515f2650 @@ -386,7 +387,7 @@ $ echo b >> b $ hg ci -mb $ hg ci --amend --close-branch -m 'closing branch foo' - saved backup bundle to $TESTTMP/.hg/strip-backup/c962248fa264-54245dc7-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/c962248fa264-54245dc7-amend.hg Same thing, different code path: @@ -395,7 +396,7 @@ reopening closed branch head 4 $ echo b >> b $ hg ci --amend --close-branch - saved backup bundle to $TESTTMP/.hg/strip-backup/027371728205-b900d9fa-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/027371728205-b900d9fa-amend.hg $ hg branches default 2:9c07515f2650 @@ -433,7 +434,7 @@ $ hg ci -m 'b -> c' $ hg mv c d $ hg ci --amend -m 'b -> d' - saved backup bundle to $TESTTMP/.hg/strip-backup/42f3f27a067d-f23cc9f7-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/42f3f27a067d-f23cc9f7-amend.hg $ hg st --rev '.^' --copies d A d b @@ -441,7 +442,7 @@ $ hg ci -m 'e = d' $ hg cp e f $ hg ci --amend -m 'f = d' - saved backup bundle to $TESTTMP/.hg/strip-backup/9198f73182d5-251d584a-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/9198f73182d5-251d584a-amend.hg $ hg st --rev '.^' --copies f A f d @@ -452,7 +453,7 @@ $ hg cp a f $ mv f.orig f $ hg ci --amend -m replacef - saved backup bundle to $TESTTMP/.hg/strip-backup/f0993ab6b482-eda301bf-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/f0993ab6b482-eda301bf-amend.hg $ hg st --change . --copies $ hg log -r . --template "{file_copies}\n" @@ -464,7 +465,7 @@ adding g $ hg mv g h $ hg ci --amend - saved backup bundle to $TESTTMP/.hg/strip-backup/58585e3f095c-0f5ebcda-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/58585e3f095c-0f5ebcda-amend.hg $ hg st --change . --copies h A h $ hg log -r . --template "{file_copies}\n" @@ -484,11 +485,11 @@ $ echo a >> a $ hg ci -ma $ hg ci --amend -m "a'" - saved backup bundle to $TESTTMP/.hg/strip-backup/39a162f1d65e-9dfe13d8-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/39a162f1d65e-9dfe13d8-amend.hg $ hg log -r . --template "{branch}\n" a $ hg ci --amend -m "a''" - saved backup bundle to $TESTTMP/.hg/strip-backup/d5ca7b1ac72b-0b4c1a34-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d5ca7b1ac72b-0b4c1a34-amend.hg $ hg log -r . --template "{branch}\n" a @@ -505,7 +506,7 @@ $ hg graft 12 grafting 12:2647734878ef "fork" (tip) $ hg ci --amend -m 'graft amend' - saved backup bundle to $TESTTMP/.hg/strip-backup/fe8c6f7957ca-25638666-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/fe8c6f7957ca-25638666-amend.hg $ hg log -r . --debug | grep extra extra: amend_source=fe8c6f7957ca1665ed77496ed7a07657d469ac60 extra: branch=a
--- a/tests/test-conflict.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-conflict.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ cat << EOF > a > Small Mathematical Series. > One
--- a/tests/test-confused-revert.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-confused-revert.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo foo > a $ hg add a $ hg commit -m "1"
--- a/tests/test-custom-filters.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-custom-filters.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ cat > .hg/hgrc <<EOF > [extensions]
--- a/tests/test-debugrename.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-debugrename.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo a > a $ hg ci -Am t adding a
--- a/tests/test-diff-ignore-whitespace.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-diff-ignore-whitespace.t Fri Nov 18 13:47:29 2022 +0000 @@ -5,7 +5,8 @@ $ echo '[alias]' >> $HGRCPATH $ echo 'ndiff = diff --nodates' >> $HGRCPATH - $ hg init + $ hg init repo + $ cd repo $ printf 'hello world\ngoodbye world\n' >foo $ hg ci -Amfoo -ufoo adding foo
--- a/tests/test-diff-indent-heuristic.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-diff-indent-heuristic.t Fri Nov 18 13:47:29 2022 +0000 @@ -8,7 +8,8 @@ > EOF #endif - $ hg init + $ hg init repo + $ cd repo $ cat > a.c <<'EOF' > /*
--- a/tests/test-diff-issue2761.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-diff-issue2761.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ Test issue2761 - $ hg init + $ hg init repo + $ cd repo $ touch to-be-deleted $ hg add
--- a/tests/test-diff-newlines.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-diff-newlines.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ "$PYTHON" -c 'open("a", "wb").write(b"confuse str.splitlines\nembedded\rnewline\n")' $ hg ci -Ama -d '1 0'
--- a/tests/test-diff-reverse.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-diff-reverse.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ cat > a <<EOF > a
--- a/tests/test-editor-filename.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-editor-filename.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ Test temp file used with an editor has the expected suffix. - $ hg init + $ hg init repo + $ cd repo Create an editor that writes its arguments to stdout and set it to $HGEDITOR. @@ -9,7 +10,7 @@ > exit 1 > EOF $ hg add editor.sh - $ HGEDITOR="sh $TESTTMP/editor.sh" + $ HGEDITOR="sh $TESTTMP/repo/editor.sh" $ export HGEDITOR Verify that the path for a commit editor has the expected suffix.
--- a/tests/test-encode.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-encode.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ Test encode/decode filters - $ hg init + $ hg init repo + $ cd repo $ cat > .hg/hgrc <<EOF > [encode] > not.gz = tr [:lower:] [:upper:]
--- a/tests/test-execute-bit.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-execute-bit.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ #require execbit - $ hg init + $ hg init repo + $ cd repo $ echo a > a $ hg ci -Am'not executable' adding a
--- a/tests/test-extra-filelog-entry.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-extra-filelog-entry.t Fri Nov 18 13:47:29 2022 +0000 @@ -3,7 +3,8 @@ $ echo "[extensions]" >> $HGRCPATH $ echo "mq=" >> $HGRCPATH - $ hg init + $ hg init repo + $ cd repo $ hg qinit $ echo b > b
--- a/tests/test-fileset-generated.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-fileset-generated.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo Set up history and working copy
--- a/tests/test-git-export.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-git-export.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo start > start $ hg ci -Amstart adding start @@ -46,7 +47,7 @@ Cross and same-directory copies with a relative root: $ hg diff --git --root .. -r 1:tip - abort: .. not under root '$TESTTMP' + abort: .. not under root '$TESTTMP/repo' [255] $ hg diff --git --root doesnotexist -r 1:tip $ hg diff --git --root . -r 1:tip @@ -121,7 +122,7 @@ +copy2 $ hg diff --git --root ../.. -r 1:tip - abort: ../.. not under root '$TESTTMP' + abort: ../.. not under root '$TESTTMP/repo' [255] $ hg diff --git --root ../doesnotexist -r 1:tip $ hg diff --git --root .. -r 1:tip
--- a/tests/test-issue1089.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-issue1089.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ https://bz.mercurial-scm.org/1089 - $ hg init + $ hg init repo + $ cd repo $ mkdir a $ echo a > a/b $ hg ci -Am m
--- a/tests/test-issue1175.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-issue1175.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ https://bz.mercurial-scm.org/1175 - $ hg init + $ hg init repo + $ cd repo $ touch a $ hg ci -Am0 adding a
--- a/tests/test-issue1438.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-issue1438.t Fri Nov 18 13:47:29 2022 +0000 @@ -2,7 +2,8 @@ https://bz.mercurial-scm.org/1438 - $ hg init + $ hg init repo + $ cd repo $ ln -s foo link $ hg add link
--- a/tests/test-issue522.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-issue522.t Fri Nov 18 13:47:29 2022 +0000 @@ -6,7 +6,8 @@ sure that we'll use the version from p2 in the manifest of the merge revision. - $ hg init + $ hg init repo + $ cd repo $ echo foo > foo $ hg ci -qAm 'add foo'
--- a/tests/test-issue612.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-issue612.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ https://bz.mercurial-scm.org/612 - $ hg init + $ hg init repo + $ cd repo $ mkdir src $ echo a > src/a.c $ hg ci -Ama
--- a/tests/test-issue619.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-issue619.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ https://bz.mercurial-scm.org/619 - $ hg init + $ hg init repo + $ cd repo $ echo a > a $ hg ci -Ama adding a
--- a/tests/test-issue672.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-issue672.t Fri Nov 18 13:47:29 2022 +0000 @@ -6,7 +6,8 @@ # # rename in #1, content change in #4. - $ hg init + $ hg init repo + $ cd repo $ touch 1 $ touch 2
--- a/tests/test-issue842.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-issue842.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,6 +1,7 @@ https://bz.mercurial-scm.org/842 - $ hg init + $ hg init repo + $ cd repo $ echo foo > a $ hg ci -Ama adding a
--- a/tests/test-journal-exists.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-journal-exists.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo a > a $ hg ci -Am0 adding a @@ -52,7 +53,7 @@ $ hg -R foo unbundle repo.hg adding changesets - abort: Permission denied: '$TESTTMP/foo/.hg/store/.00changelog.i-*' (glob) + abort: Permission denied: '$TESTTMP/repo/foo/.hg/store/.00changelog.i-*' (glob) [255] $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
--- a/tests/test-legacy-exit-code.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-legacy-exit-code.t Fri Nov 18 13:47:29 2022 +0000 @@ -6,7 +6,8 @@ > detailed-exit-code=no > EOF - $ hg init + $ hg init repo + $ cd repo $ echo a > a Expect exit code 0 on success $ hg ci -Aqm initial
--- a/tests/test-log-linerange.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-log-linerange.t Fri Nov 18 13:47:29 2022 +0000 @@ -3,7 +3,8 @@ > git = true > EOF - $ hg init + $ hg init repo + $ cd repo $ cat > foo << EOF > 0 > 1
--- a/tests/test-merge-default.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-merge-default.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo a > a $ hg commit -A -ma adding a
--- a/tests/test-merge-internal-tools-pattern.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-merge-internal-tools-pattern.t Fri Nov 18 13:47:29 2022 +0000 @@ -6,7 +6,8 @@ $ unset HGMERGE - $ hg init + $ hg init repo + $ cd repo Initial file contents:
--- a/tests/test-merge-local.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-merge-local.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo Revision 0:
--- a/tests/test-merge-remove.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-merge-remove.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo foo > foo $ echo bar > bar
--- a/tests/test-merge-revert.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-merge-revert.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo "added file1" > file1 $ echo "added file2" > file2
--- a/tests/test-merge-revert2.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-merge-revert2.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo "added file1" > file1 $ echo "another line of text" >> file1
--- a/tests/test-merge-subrepos.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-merge-subrepos.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo a > a $ hg ci -qAm 'add a'
--- a/tests/test-merge4.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-merge4.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo This is file a1 > a $ hg add a $ hg commit -m "commit #0"
--- a/tests/test-merge5.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-merge5.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo This is file a1 > a $ echo This is file b1 > b $ hg add a b
--- a/tests/test-mq-guards.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-mq-guards.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,7 +1,8 @@ $ echo "[extensions]" >> $HGRCPATH $ echo "mq=" >> $HGRCPATH - $ hg init + $ hg init repo + $ cd repo $ hg qinit $ echo x > x
--- a/tests/test-mq-qsave.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-mq-qsave.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,7 +1,8 @@ $ echo "[extensions]" >> $HGRCPATH $ echo "mq=" >> $HGRCPATH - $ hg init + $ hg init repo + $ cd repo $ echo 'base' > base $ hg ci -Ambase
--- a/tests/test-mq-symlinks.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-mq-symlinks.t Fri Nov 18 13:47:29 2022 +0000 @@ -3,7 +3,8 @@ $ echo "[extensions]" >> $HGRCPATH $ echo "mq=" >> $HGRCPATH - $ hg init + $ hg init repo + $ cd repo $ hg qinit $ hg qnew base.patch $ echo aaa > a
--- a/tests/test-paths.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-paths.t Fri Nov 18 13:47:29 2022 +0000 @@ -238,11 +238,6 @@ basic setup ----------- - $ ls -1 - a - b - gpath1 - suboptions $ hg init chained_path $ cd chained_path $ cat << EOF > .hg/hgrc
--- a/tests/test-rename-merge1.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-rename-merge1.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo "[merge]" >> .hg/hgrc $ echo "followcopies = 1" >> .hg/hgrc
--- a/tests/test-rename.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-rename.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ mkdir d1 d1/d11 d2 $ echo d1/a > d1/a $ echo d1/ba > d1/ba @@ -613,7 +614,7 @@ [10] $ hg status -C $ hg rename d1/d11/a1 ../foo - abort: ../foo not under root '$TESTTMP' + abort: ../foo not under root '$TESTTMP/repo' [255] $ hg status -C @@ -636,11 +637,11 @@ [10] $ hg status -C $ hg rename d1/d11/a1 .. - abort: ../a1 not under root '$TESTTMP' + abort: ../a1 not under root '$TESTTMP/repo' [255] $ hg --config extensions.largefiles= rename d1/d11/a1 .. The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) - abort: ../a1 not under root '$TESTTMP' + abort: ../a1 not under root '$TESTTMP/repo' [255] $ hg status -C @@ -659,7 +660,7 @@ [10] $ hg status -C $ (cd d1/d11; hg rename ../../d2/b ../../../foo) - abort: ../../../foo not under root '$TESTTMP' + abort: ../../../foo not under root '$TESTTMP/repo' [255] $ hg status -C
--- a/tests/test-revert-unknown.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-revert-unknown.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ touch unknown $ touch a
--- a/tests/test-status-rev.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-status-rev.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,7 +1,8 @@ Tests of 'hg status --rev <rev>' to make sure status between <rev> and '.' get combined correctly with the dirstate status. - $ hg init + $ hg init repo + $ cd repo First commit
--- a/tests/test-strict.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-strict.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo a > a $ hg ci -Ama