##// END OF EJS Templates
tests: run many tests in $TESTTMP/repo instead of $TESTTMP...
Arseniy Alekseyev -
r50516:55c6ebd1 stable
parent child Browse files
Show More
@@ -2,7 +2,8 b" The simple store doesn't escape paths ro"
2 with periods, etc. So much of this test fails with it.
2 with periods, etc. So much of this test fails with it.
3 #require no-reposimplestore
3 #require no-reposimplestore
4
4
5 $ hg init
5 $ hg init repo
6 $ cd repo
6
7
7 audit of .hg
8 audit of .hg
8
9
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo This is file a1 > a
3 $ echo This is file a1 > a
3 $ hg add a
4 $ hg add a
4 $ hg commit -m "commit #0"
5 $ hg commit -m "commit #0"
@@ -1,5 +1,5 b''
1 $ hg init
1 $ hg init repo
2
2 $ cd repo
3
3
4 committing changes
4 committing changes
5
5
@@ -460,7 +460,7 b' assuming that the shell returns 127 if c'
460
460
461 test bisecting command
461 test bisecting command
462
462
463 $ cat > script.py <<EOF
463 $ cat > "$TESTTMP/script.py" <<EOF
464 > #!$PYTHON
464 > #!$PYTHON
465 > import sys
465 > import sys
466 > from mercurial import hg, ui as uimod
466 > from mercurial import hg, ui as uimod
@@ -468,7 +468,7 b' test bisecting command'
468 > if repo[b'.'].rev() < 6:
468 > if repo[b'.'].rev() < 6:
469 > sys.exit(1)
469 > sys.exit(1)
470 > EOF
470 > EOF
471 $ chmod +x script.py
471 $ chmod +x "$TESTTMP/script.py"
472 $ hg bisect -r
472 $ hg bisect -r
473 $ hg up -qr tip
473 $ hg up -qr tip
474 $ hg bisect --command "\"$PYTHON\" \"$TESTTMP/script.py\" and some parameters"
474 $ hg bisect --command "\"$PYTHON\" \"$TESTTMP/script.py\" and some parameters"
@@ -497,7 +497,7 b' command'
497
497
498 $ hg update null
498 $ hg update null
499 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
499 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
500 $ cat > script.sh <<'EOF'
500 $ cat > "$TESTTMP/script.sh" <<'EOF'
501 > #!/bin/sh
501 > #!/bin/sh
502 > test -n "$HG_NODE" || (echo HG_NODE missing; exit 127)
502 > test -n "$HG_NODE" || (echo HG_NODE missing; exit 127)
503 > current="`hg log -r \"bisect(current)\" --template {node}`"
503 > current="`hg log -r \"bisect(current)\" --template {node}`"
@@ -505,7 +505,7 b' command'
505 > rev="`hg log -r $HG_NODE --template {rev}`"
505 > rev="`hg log -r $HG_NODE --template {rev}`"
506 > test "$rev" -ge 6
506 > test "$rev" -ge 6
507 > EOF
507 > EOF
508 $ chmod +x script.sh
508 $ chmod +x "$TESTTMP/script.sh"
509 $ hg bisect -r
509 $ hg bisect -r
510 $ hg bisect --good tip --noupdate
510 $ hg bisect --good tip --noupdate
511 $ hg bisect --bad 0 --noupdate
511 $ hg bisect --bad 0 --noupdate
@@ -530,7 +530,7 b" ensure that we still don't have a workin"
530
530
531 test the same case, this time with updating
531 test the same case, this time with updating
532
532
533 $ cat > script.sh <<'EOF'
533 $ cat > "$TESTTMP/script.sh" <<'EOF'
534 > #!/bin/sh
534 > #!/bin/sh
535 > test -n "$HG_NODE" || (echo HG_NODE missing; exit 127)
535 > test -n "$HG_NODE" || (echo HG_NODE missing; exit 127)
536 > current="`hg log -r \"bisect(current)\" --template {node}`"
536 > current="`hg log -r \"bisect(current)\" --template {node}`"
@@ -538,7 +538,7 b' test the same case, this time with updat'
538 > rev="`hg log -r . --template {rev}`"
538 > rev="`hg log -r . --template {rev}`"
539 > test "$rev" -ge 6
539 > test "$rev" -ge 6
540 > EOF
540 > EOF
541 $ chmod +x script.sh
541 $ chmod +x "$TESTTMP/script.sh"
542 $ hg bisect -r
542 $ hg bisect -r
543 $ hg up -qr tip
543 $ hg up -qr tip
544 $ hg bisect --command "sh \"$TESTTMP/script.sh\" and some params"
544 $ hg bisect --command "sh \"$TESTTMP/script.sh\" and some params"
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 no bookmarks
4 no bookmarks
4
5
@@ -1,6 +1,7 b''
1 # init
1 # init
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4 $ echo a > a
5 $ echo a > a
5 $ hg add a
6 $ hg add a
6 $ hg commit -m'a'
7 $ hg commit -m'a'
@@ -3,7 +3,8 b''
3
3
4 initialize repository
4 initialize repository
5
5
6 $ hg init
6 $ hg init repo
7 $ cd repo
7
8
8 $ echo 'a' > a
9 $ echo 'a' > a
9 $ hg ci -A -m "0"
10 $ hg ci -A -m "0"
@@ -38,7 +39,7 b' rebase'
38
39
39 $ hg rebase -s two -d one
40 $ hg rebase -s two -d one
40 rebasing 3:2ae46b1d99a7 two tip "3"
41 rebasing 3:2ae46b1d99a7 two tip "3"
41 saved backup bundle to $TESTTMP/.hg/strip-backup/2ae46b1d99a7-e6b057bc-rebase.hg
42 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/2ae46b1d99a7-e6b057bc-rebase.hg
42
43
43 $ hg log
44 $ hg log
44 changeset: 3:42e5ed2cdcf4
45 changeset: 3:42e5ed2cdcf4
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo 0 > a
3 $ echo 0 > a
3 $ echo 0 > b
4 $ echo 0 > b
4 $ hg ci -A -m m
5 $ hg ci -A -m m
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo foo > bar
3 $ echo foo > bar
3 $ hg commit -Am default
4 $ hg commit -Am default
4 adding bar
5 adding bar
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 Setup:
4 Setup:
4
5
@@ -36,7 +37,7 b' Amending changeset with changes in worki'
36 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit --amend -m 'amend base1'
37 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit --amend -m 'amend base1'
37 pretxncommit 43f1ba15f28a50abf0aae529cf8a16bfced7b149
38 pretxncommit 43f1ba15f28a50abf0aae529cf8a16bfced7b149
38 43f1ba15f28a tip
39 43f1ba15f28a tip
39 saved backup bundle to $TESTTMP/.hg/strip-backup/489edb5b847d-5ab4f721-amend.hg
40 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/489edb5b847d-5ab4f721-amend.hg
40 $ echo 'pretxncommit.foo = ' >> $HGRCPATH
41 $ echo 'pretxncommit.foo = ' >> $HGRCPATH
41 $ hg diff -c .
42 $ hg diff -c .
42 diff -r ad120869acf0 -r 43f1ba15f28a a
43 diff -r ad120869acf0 -r 43f1ba15f28a a
@@ -94,7 +95,7 b' the amend, there should be no rollback.'
94
95
95 Add new file along with modified existing file:
96 Add new file along with modified existing file:
96 $ hg ci --amend -m 'amend base1 new file'
97 $ hg ci --amend -m 'amend base1 new file'
97 saved backup bundle to $TESTTMP/.hg/strip-backup/43f1ba15f28a-007467c2-amend.hg
98 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/43f1ba15f28a-007467c2-amend.hg
98
99
99 Remove file that was added in amended commit:
100 Remove file that was added in amended commit:
100 (and test logfile option)
101 (and test logfile option)
@@ -103,7 +104,7 b' Remove file that was added in amended co'
103 $ hg rm b
104 $ hg rm b
104 $ echo 'amend base1 remove new file' > ../logfile
105 $ echo 'amend base1 remove new file' > ../logfile
105 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg ci --amend --logfile ../logfile
106 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg ci --amend --logfile ../logfile
106 saved backup bundle to $TESTTMP/.hg/strip-backup/c16295aaf401-1ada9901-amend.hg
107 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/c16295aaf401-1ada9901-amend.hg
107
108
108 $ hg cat b
109 $ hg cat b
109 b: no such file in rev 47343646fa3d
110 b: no such file in rev 47343646fa3d
@@ -123,7 +124,7 b' No changes, just a different message:'
123 254 (changelog)
124 254 (changelog)
124 163 (manifests)
125 163 (manifests)
125 131 a
126 131 a
126 saved backup bundle to $TESTTMP/.hg/strip-backup/47343646fa3d-c2758885-amend.hg
127 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/47343646fa3d-c2758885-amend.hg
127 1 changesets found
128 1 changesets found
128 uncompressed size of bundle content:
129 uncompressed size of bundle content:
129 250 (changelog)
130 250 (changelog)
@@ -170,10 +171,10 b' Test -u/-d:'
170 > EOF
171 > EOF
171 $ HGEDITOR="sh .hg/checkeditform.sh" hg ci --amend -u foo -d '1 0'
172 $ HGEDITOR="sh .hg/checkeditform.sh" hg ci --amend -u foo -d '1 0'
172 HGEDITFORM=commit.amend.normal
173 HGEDITFORM=commit.amend.normal
173 saved backup bundle to $TESTTMP/.hg/strip-backup/401431e913a1-5e8e532c-amend.hg
174 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/401431e913a1-5e8e532c-amend.hg
174 $ echo a >> a
175 $ echo a >> a
175 $ hg ci --amend -u foo -d '1 0'
176 $ hg ci --amend -u foo -d '1 0'
176 saved backup bundle to $TESTTMP/.hg/strip-backup/d96b1d28ae33-677e0afb-amend.hg
177 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d96b1d28ae33-677e0afb-amend.hg
177 $ hg log -r .
178 $ hg log -r .
178 changeset: 1:a9a13940fc03
179 changeset: 1:a9a13940fc03
179 tag: tip
180 tag: tip
@@ -267,7 +268,7 b' then, test editing custom commit message'
267 249 (changelog)
268 249 (changelog)
268 163 (manifests)
269 163 (manifests)
269 133 a
270 133 a
270 saved backup bundle to $TESTTMP/.hg/strip-backup/a9a13940fc03-7c2e8674-amend.hg
271 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/a9a13940fc03-7c2e8674-amend.hg
271 1 changesets found
272 1 changesets found
272 uncompressed size of bundle content:
273 uncompressed size of bundle content:
273 257 (changelog)
274 257 (changelog)
@@ -303,7 +304,7 b' Same, but with changes in working dir (d'
303 257 (changelog)
304 257 (changelog)
304 163 (manifests)
305 163 (manifests)
305 133 a
306 133 a
306 saved backup bundle to $TESTTMP/.hg/strip-backup/64a124ba1b44-10374b8f-amend.hg
307 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/64a124ba1b44-10374b8f-amend.hg
307 1 changesets found
308 1 changesets found
308 uncompressed size of bundle content:
309 uncompressed size of bundle content:
309 257 (changelog)
310 257 (changelog)
@@ -330,13 +331,13 b' Moving bookmarks, preserve active bookma'
330 $ hg book book1
331 $ hg book book1
331 $ hg book book2
332 $ hg book book2
332 $ hg ci --amend -m 'move bookmarks'
333 $ hg ci --amend -m 'move bookmarks'
333 saved backup bundle to $TESTTMP/.hg/strip-backup/7892795b8e38-3fb46217-amend.hg
334 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/7892795b8e38-3fb46217-amend.hg
334 $ hg book
335 $ hg book
335 book1 1:8311f17e2616
336 book1 1:8311f17e2616
336 * book2 1:8311f17e2616
337 * book2 1:8311f17e2616
337 $ echo a >> a
338 $ echo a >> a
338 $ hg ci --amend -m 'move bookmarks'
339 $ hg ci --amend -m 'move bookmarks'
339 saved backup bundle to $TESTTMP/.hg/strip-backup/8311f17e2616-f0504fe3-amend.hg
340 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/8311f17e2616-f0504fe3-amend.hg
340 $ hg book
341 $ hg book
341 book1 1:a3b65065808c
342 book1 1:a3b65065808c
342 * book2 1:a3b65065808c
343 * book2 1:a3b65065808c
@@ -370,7 +371,7 b' Moving branches:'
370 $ hg branch default -f
371 $ hg branch default -f
371 marked working directory as branch default
372 marked working directory as branch default
372 $ hg ci --amend -m 'back to default'
373 $ hg ci --amend -m 'back to default'
373 saved backup bundle to $TESTTMP/.hg/strip-backup/f8339a38efe1-c18453c9-amend.hg
374 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/f8339a38efe1-c18453c9-amend.hg
374 $ hg branches
375 $ hg branches
375 default 2:9c07515f2650
376 default 2:9c07515f2650
376
377
@@ -386,7 +387,7 b' Close branch:'
386 $ echo b >> b
387 $ echo b >> b
387 $ hg ci -mb
388 $ hg ci -mb
388 $ hg ci --amend --close-branch -m 'closing branch foo'
389 $ hg ci --amend --close-branch -m 'closing branch foo'
389 saved backup bundle to $TESTTMP/.hg/strip-backup/c962248fa264-54245dc7-amend.hg
390 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/c962248fa264-54245dc7-amend.hg
390
391
391 Same thing, different code path:
392 Same thing, different code path:
392
393
@@ -395,7 +396,7 b' Same thing, different code path:'
395 reopening closed branch head 4
396 reopening closed branch head 4
396 $ echo b >> b
397 $ echo b >> b
397 $ hg ci --amend --close-branch
398 $ hg ci --amend --close-branch
398 saved backup bundle to $TESTTMP/.hg/strip-backup/027371728205-b900d9fa-amend.hg
399 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/027371728205-b900d9fa-amend.hg
399 $ hg branches
400 $ hg branches
400 default 2:9c07515f2650
401 default 2:9c07515f2650
401
402
@@ -433,7 +434,7 b' Follow copies/renames:'
433 $ hg ci -m 'b -> c'
434 $ hg ci -m 'b -> c'
434 $ hg mv c d
435 $ hg mv c d
435 $ hg ci --amend -m 'b -> d'
436 $ hg ci --amend -m 'b -> d'
436 saved backup bundle to $TESTTMP/.hg/strip-backup/42f3f27a067d-f23cc9f7-amend.hg
437 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/42f3f27a067d-f23cc9f7-amend.hg
437 $ hg st --rev '.^' --copies d
438 $ hg st --rev '.^' --copies d
438 A d
439 A d
439 b
440 b
@@ -441,7 +442,7 b' Follow copies/renames:'
441 $ hg ci -m 'e = d'
442 $ hg ci -m 'e = d'
442 $ hg cp e f
443 $ hg cp e f
443 $ hg ci --amend -m 'f = d'
444 $ hg ci --amend -m 'f = d'
444 saved backup bundle to $TESTTMP/.hg/strip-backup/9198f73182d5-251d584a-amend.hg
445 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/9198f73182d5-251d584a-amend.hg
445 $ hg st --rev '.^' --copies f
446 $ hg st --rev '.^' --copies f
446 A f
447 A f
447 d
448 d
@@ -452,7 +453,7 b' Follow copies/renames:'
452 $ hg cp a f
453 $ hg cp a f
453 $ mv f.orig f
454 $ mv f.orig f
454 $ hg ci --amend -m replacef
455 $ hg ci --amend -m replacef
455 saved backup bundle to $TESTTMP/.hg/strip-backup/f0993ab6b482-eda301bf-amend.hg
456 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/f0993ab6b482-eda301bf-amend.hg
456 $ hg st --change . --copies
457 $ hg st --change . --copies
457 $ hg log -r . --template "{file_copies}\n"
458 $ hg log -r . --template "{file_copies}\n"
458
459
@@ -464,7 +465,7 b' Move added file (issue3410):'
464 adding g
465 adding g
465 $ hg mv g h
466 $ hg mv g h
466 $ hg ci --amend
467 $ hg ci --amend
467 saved backup bundle to $TESTTMP/.hg/strip-backup/58585e3f095c-0f5ebcda-amend.hg
468 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/58585e3f095c-0f5ebcda-amend.hg
468 $ hg st --change . --copies h
469 $ hg st --change . --copies h
469 A h
470 A h
470 $ hg log -r . --template "{file_copies}\n"
471 $ hg log -r . --template "{file_copies}\n"
@@ -484,11 +485,11 b' Preserve extra dict (issue3430):'
484 $ echo a >> a
485 $ echo a >> a
485 $ hg ci -ma
486 $ hg ci -ma
486 $ hg ci --amend -m "a'"
487 $ hg ci --amend -m "a'"
487 saved backup bundle to $TESTTMP/.hg/strip-backup/39a162f1d65e-9dfe13d8-amend.hg
488 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/39a162f1d65e-9dfe13d8-amend.hg
488 $ hg log -r . --template "{branch}\n"
489 $ hg log -r . --template "{branch}\n"
489 a
490 a
490 $ hg ci --amend -m "a''"
491 $ hg ci --amend -m "a''"
491 saved backup bundle to $TESTTMP/.hg/strip-backup/d5ca7b1ac72b-0b4c1a34-amend.hg
492 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d5ca7b1ac72b-0b4c1a34-amend.hg
492 $ hg log -r . --template "{branch}\n"
493 $ hg log -r . --template "{branch}\n"
493 a
494 a
494
495
@@ -505,7 +506,7 b" first graft something so there's an addi"
505 $ hg graft 12
506 $ hg graft 12
506 grafting 12:2647734878ef "fork" (tip)
507 grafting 12:2647734878ef "fork" (tip)
507 $ hg ci --amend -m 'graft amend'
508 $ hg ci --amend -m 'graft amend'
508 saved backup bundle to $TESTTMP/.hg/strip-backup/fe8c6f7957ca-25638666-amend.hg
509 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/fe8c6f7957ca-25638666-amend.hg
509 $ hg log -r . --debug | grep extra
510 $ hg log -r . --debug | grep extra
510 extra: amend_source=fe8c6f7957ca1665ed77496ed7a07657d469ac60
511 extra: amend_source=fe8c6f7957ca1665ed77496ed7a07657d469ac60
511 extra: branch=a
512 extra: branch=a
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ cat << EOF > a
3 $ cat << EOF > a
3 > Small Mathematical Series.
4 > Small Mathematical Series.
4 > One
5 > One
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo foo > a
3 $ echo foo > a
3 $ hg add a
4 $ hg add a
4 $ hg commit -m "1"
5 $ hg commit -m "1"
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ cat > .hg/hgrc <<EOF
4 $ cat > .hg/hgrc <<EOF
4 > [extensions]
5 > [extensions]
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo a > a
3 $ echo a > a
3 $ hg ci -Am t
4 $ hg ci -Am t
4 adding a
5 adding a
@@ -5,7 +5,8 b' Prepare tests:'
5 $ echo '[alias]' >> $HGRCPATH
5 $ echo '[alias]' >> $HGRCPATH
6 $ echo 'ndiff = diff --nodates' >> $HGRCPATH
6 $ echo 'ndiff = diff --nodates' >> $HGRCPATH
7
7
8 $ hg init
8 $ hg init repo
9 $ cd repo
9 $ printf 'hello world\ngoodbye world\n' >foo
10 $ printf 'hello world\ngoodbye world\n' >foo
10 $ hg ci -Amfoo -ufoo
11 $ hg ci -Amfoo -ufoo
11 adding foo
12 adding foo
@@ -8,7 +8,8 b''
8 > EOF
8 > EOF
9 #endif
9 #endif
10
10
11 $ hg init
11 $ hg init repo
12 $ cd repo
12
13
13 $ cat > a.c <<'EOF'
14 $ cat > a.c <<'EOF'
14 > /*
15 > /*
@@ -1,6 +1,7 b''
1 Test issue2761
1 Test issue2761
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4
5
5 $ touch to-be-deleted
6 $ touch to-be-deleted
6 $ hg add
7 $ hg add
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ "$PYTHON" -c 'open("a", "wb").write(b"confuse str.splitlines\nembedded\rnewline\n")'
4 $ "$PYTHON" -c 'open("a", "wb").write(b"confuse str.splitlines\nembedded\rnewline\n")'
4 $ hg ci -Ama -d '1 0'
5 $ hg ci -Ama -d '1 0'
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ cat > a <<EOF
4 $ cat > a <<EOF
4 > a
5 > a
@@ -1,6 +1,7 b''
1 Test temp file used with an editor has the expected suffix.
1 Test temp file used with an editor has the expected suffix.
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4
5
5 Create an editor that writes its arguments to stdout and set it to $HGEDITOR.
6 Create an editor that writes its arguments to stdout and set it to $HGEDITOR.
6
7
@@ -9,7 +10,7 b' Create an editor that writes its argumen'
9 > exit 1
10 > exit 1
10 > EOF
11 > EOF
11 $ hg add editor.sh
12 $ hg add editor.sh
12 $ HGEDITOR="sh $TESTTMP/editor.sh"
13 $ HGEDITOR="sh $TESTTMP/repo/editor.sh"
13 $ export HGEDITOR
14 $ export HGEDITOR
14
15
15 Verify that the path for a commit editor has the expected suffix.
16 Verify that the path for a commit editor has the expected suffix.
@@ -1,6 +1,7 b''
1 Test encode/decode filters
1 Test encode/decode filters
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4 $ cat > .hg/hgrc <<EOF
5 $ cat > .hg/hgrc <<EOF
5 > [encode]
6 > [encode]
6 > not.gz = tr [:lower:] [:upper:]
7 > not.gz = tr [:lower:] [:upper:]
@@ -1,6 +1,7 b''
1 #require execbit
1 #require execbit
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4 $ echo a > a
5 $ echo a > a
5 $ hg ci -Am'not executable'
6 $ hg ci -Am'not executable'
6 adding a
7 adding a
@@ -3,7 +3,8 b' Issue351: mq: qrefresh can create extra '
3 $ echo "[extensions]" >> $HGRCPATH
3 $ echo "[extensions]" >> $HGRCPATH
4 $ echo "mq=" >> $HGRCPATH
4 $ echo "mq=" >> $HGRCPATH
5
5
6 $ hg init
6 $ hg init repo
7 $ cd repo
7 $ hg qinit
8 $ hg qinit
8
9
9 $ echo b > b
10 $ echo b > b
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 Set up history and working copy
4 Set up history and working copy
4
5
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo start > start
3 $ echo start > start
3 $ hg ci -Amstart
4 $ hg ci -Amstart
4 adding start
5 adding start
@@ -46,7 +47,7 b' Copy:'
46 Cross and same-directory copies with a relative root:
47 Cross and same-directory copies with a relative root:
47
48
48 $ hg diff --git --root .. -r 1:tip
49 $ hg diff --git --root .. -r 1:tip
49 abort: .. not under root '$TESTTMP'
50 abort: .. not under root '$TESTTMP/repo'
50 [255]
51 [255]
51 $ hg diff --git --root doesnotexist -r 1:tip
52 $ hg diff --git --root doesnotexist -r 1:tip
52 $ hg diff --git --root . -r 1:tip
53 $ hg diff --git --root . -r 1:tip
@@ -121,7 +122,7 b' Cross and same-directory copies with a r'
121 +copy2
122 +copy2
122
123
123 $ hg diff --git --root ../.. -r 1:tip
124 $ hg diff --git --root ../.. -r 1:tip
124 abort: ../.. not under root '$TESTTMP'
125 abort: ../.. not under root '$TESTTMP/repo'
125 [255]
126 [255]
126 $ hg diff --git --root ../doesnotexist -r 1:tip
127 $ hg diff --git --root ../doesnotexist -r 1:tip
127 $ hg diff --git --root .. -r 1:tip
128 $ hg diff --git --root .. -r 1:tip
@@ -1,6 +1,7 b''
1 https://bz.mercurial-scm.org/1089
1 https://bz.mercurial-scm.org/1089
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4 $ mkdir a
5 $ mkdir a
5 $ echo a > a/b
6 $ echo a > a/b
6 $ hg ci -Am m
7 $ hg ci -Am m
@@ -1,6 +1,7 b''
1 https://bz.mercurial-scm.org/1175
1 https://bz.mercurial-scm.org/1175
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4 $ touch a
5 $ touch a
5 $ hg ci -Am0
6 $ hg ci -Am0
6 adding a
7 adding a
@@ -2,7 +2,8 b''
2
2
3 https://bz.mercurial-scm.org/1438
3 https://bz.mercurial-scm.org/1438
4
4
5 $ hg init
5 $ hg init repo
6 $ cd repo
6
7
7 $ ln -s foo link
8 $ ln -s foo link
8 $ hg add link
9 $ hg add link
@@ -6,7 +6,8 b' the version in p1 is an ancestor of the '
6 sure that we'll use the version from p2 in the manifest of the merge
6 sure that we'll use the version from p2 in the manifest of the merge
7 revision.
7 revision.
8
8
9 $ hg init
9 $ hg init repo
10 $ cd repo
10
11
11 $ echo foo > foo
12 $ echo foo > foo
12 $ hg ci -qAm 'add foo'
13 $ hg ci -qAm 'add foo'
@@ -1,6 +1,7 b''
1 https://bz.mercurial-scm.org/612
1 https://bz.mercurial-scm.org/612
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4 $ mkdir src
5 $ mkdir src
5 $ echo a > src/a.c
6 $ echo a > src/a.c
6 $ hg ci -Ama
7 $ hg ci -Ama
@@ -1,6 +1,7 b''
1 https://bz.mercurial-scm.org/619
1 https://bz.mercurial-scm.org/619
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4 $ echo a > a
5 $ echo a > a
5 $ hg ci -Ama
6 $ hg ci -Ama
6 adding a
7 adding a
@@ -6,7 +6,8 b' https://bz.mercurial-scm.org/672'
6 #
6 #
7 # rename in #1, content change in #4.
7 # rename in #1, content change in #4.
8
8
9 $ hg init
9 $ hg init repo
10 $ cd repo
10
11
11 $ touch 1
12 $ touch 1
12 $ touch 2
13 $ touch 2
@@ -1,6 +1,7 b''
1 https://bz.mercurial-scm.org/842
1 https://bz.mercurial-scm.org/842
2
2
3 $ hg init
3 $ hg init repo
4 $ cd repo
4 $ echo foo > a
5 $ echo foo > a
5 $ hg ci -Ama
6 $ hg ci -Ama
6 adding a
7 adding a
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo a > a
3 $ echo a > a
3 $ hg ci -Am0
4 $ hg ci -Am0
4 adding a
5 adding a
@@ -52,7 +53,7 b' Check that zero-size journals are correc'
52
53
53 $ hg -R foo unbundle repo.hg
54 $ hg -R foo unbundle repo.hg
54 adding changesets
55 adding changesets
55 abort: Permission denied: '$TESTTMP/foo/.hg/store/.00changelog.i-*' (glob)
56 abort: Permission denied: '$TESTTMP/repo/foo/.hg/store/.00changelog.i-*' (glob)
56 [255]
57 [255]
57
58
58 $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
59 $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
@@ -6,7 +6,8 b' enabled.'
6 > detailed-exit-code=no
6 > detailed-exit-code=no
7 > EOF
7 > EOF
8
8
9 $ hg init
9 $ hg init repo
10 $ cd repo
10 $ echo a > a
11 $ echo a > a
11 Expect exit code 0 on success
12 Expect exit code 0 on success
12 $ hg ci -Aqm initial
13 $ hg ci -Aqm initial
@@ -3,7 +3,8 b''
3 > git = true
3 > git = true
4 > EOF
4 > EOF
5
5
6 $ hg init
6 $ hg init repo
7 $ cd repo
7 $ cat > foo << EOF
8 $ cat > foo << EOF
8 > 0
9 > 0
9 > 1
10 > 1
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo a > a
3 $ echo a > a
3 $ hg commit -A -ma
4 $ hg commit -A -ma
4 adding a
5 adding a
@@ -6,7 +6,8 b" Make sure HGMERGE doesn't interfere with"
6
6
7 $ unset HGMERGE
7 $ unset HGMERGE
8
8
9 $ hg init
9 $ hg init repo
10 $ cd repo
10
11
11 Initial file contents:
12 Initial file contents:
12
13
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 Revision 0:
4 Revision 0:
4
5
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ echo foo > foo
4 $ echo foo > foo
4 $ echo bar > bar
5 $ echo bar > bar
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ echo "added file1" > file1
4 $ echo "added file1" > file1
4 $ echo "added file2" > file2
5 $ echo "added file2" > file2
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ echo "added file1" > file1
4 $ echo "added file1" > file1
4 $ echo "another line of text" >> file1
5 $ echo "another line of text" >> file1
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ echo a > a
4 $ echo a > a
4 $ hg ci -qAm 'add a'
5 $ hg ci -qAm 'add a'
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo This is file a1 > a
3 $ echo This is file a1 > a
3 $ hg add a
4 $ hg add a
4 $ hg commit -m "commit #0"
5 $ hg commit -m "commit #0"
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ echo This is file a1 > a
3 $ echo This is file a1 > a
3 $ echo This is file b1 > b
4 $ echo This is file b1 > b
4 $ hg add a b
5 $ hg add a b
@@ -1,7 +1,8 b''
1 $ echo "[extensions]" >> $HGRCPATH
1 $ echo "[extensions]" >> $HGRCPATH
2 $ echo "mq=" >> $HGRCPATH
2 $ echo "mq=" >> $HGRCPATH
3
3
4 $ hg init
4 $ hg init repo
5 $ cd repo
5 $ hg qinit
6 $ hg qinit
6
7
7 $ echo x > x
8 $ echo x > x
@@ -1,7 +1,8 b''
1 $ echo "[extensions]" >> $HGRCPATH
1 $ echo "[extensions]" >> $HGRCPATH
2 $ echo "mq=" >> $HGRCPATH
2 $ echo "mq=" >> $HGRCPATH
3
3
4 $ hg init
4 $ hg init repo
5 $ cd repo
5
6
6 $ echo 'base' > base
7 $ echo 'base' > base
7 $ hg ci -Ambase
8 $ hg ci -Ambase
@@ -3,7 +3,8 b''
3 $ echo "[extensions]" >> $HGRCPATH
3 $ echo "[extensions]" >> $HGRCPATH
4 $ echo "mq=" >> $HGRCPATH
4 $ echo "mq=" >> $HGRCPATH
5
5
6 $ hg init
6 $ hg init repo
7 $ cd repo
7 $ hg qinit
8 $ hg qinit
8 $ hg qnew base.patch
9 $ hg qnew base.patch
9 $ echo aaa > a
10 $ echo aaa > a
@@ -238,11 +238,6 b' Testing path referencing other paths'
238 basic setup
238 basic setup
239 -----------
239 -----------
240
240
241 $ ls -1
242 a
243 b
244 gpath1
245 suboptions
246 $ hg init chained_path
241 $ hg init chained_path
247 $ cd chained_path
242 $ cd chained_path
248 $ cat << EOF > .hg/hgrc
243 $ cat << EOF > .hg/hgrc
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ echo "[merge]" >> .hg/hgrc
4 $ echo "[merge]" >> .hg/hgrc
4 $ echo "followcopies = 1" >> .hg/hgrc
5 $ echo "followcopies = 1" >> .hg/hgrc
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ mkdir d1 d1/d11 d2
3 $ mkdir d1 d1/d11 d2
3 $ echo d1/a > d1/a
4 $ echo d1/a > d1/a
4 $ echo d1/ba > d1/ba
5 $ echo d1/ba > d1/ba
@@ -613,7 +614,7 b' check illegal path components'
613 [10]
614 [10]
614 $ hg status -C
615 $ hg status -C
615 $ hg rename d1/d11/a1 ../foo
616 $ hg rename d1/d11/a1 ../foo
616 abort: ../foo not under root '$TESTTMP'
617 abort: ../foo not under root '$TESTTMP/repo'
617 [255]
618 [255]
618 $ hg status -C
619 $ hg status -C
619
620
@@ -636,11 +637,11 b' check illegal path components'
636 [10]
637 [10]
637 $ hg status -C
638 $ hg status -C
638 $ hg rename d1/d11/a1 ..
639 $ hg rename d1/d11/a1 ..
639 abort: ../a1 not under root '$TESTTMP'
640 abort: ../a1 not under root '$TESTTMP/repo'
640 [255]
641 [255]
641 $ hg --config extensions.largefiles= rename d1/d11/a1 ..
642 $ hg --config extensions.largefiles= rename d1/d11/a1 ..
642 The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !)
643 The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !)
643 abort: ../a1 not under root '$TESTTMP'
644 abort: ../a1 not under root '$TESTTMP/repo'
644 [255]
645 [255]
645 $ hg status -C
646 $ hg status -C
646
647
@@ -659,7 +660,7 b' check illegal path components'
659 [10]
660 [10]
660 $ hg status -C
661 $ hg status -C
661 $ (cd d1/d11; hg rename ../../d2/b ../../../foo)
662 $ (cd d1/d11; hg rename ../../d2/b ../../../foo)
662 abort: ../../../foo not under root '$TESTTMP'
663 abort: ../../../foo not under root '$TESTTMP/repo'
663 [255]
664 [255]
664 $ hg status -C
665 $ hg status -C
665
666
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ touch unknown
3 $ touch unknown
3
4
4 $ touch a
5 $ touch a
@@ -1,7 +1,8 b''
1 Tests of 'hg status --rev <rev>' to make sure status between <rev> and '.' get
1 Tests of 'hg status --rev <rev>' to make sure status between <rev> and '.' get
2 combined correctly with the dirstate status.
2 combined correctly with the dirstate status.
3
3
4 $ hg init
4 $ hg init repo
5 $ cd repo
5
6
6 First commit
7 First commit
7
8
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ echo a > a
4 $ echo a > a
4 $ hg ci -Ama
5 $ hg ci -Ama
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2
3
3 $ touch a
4 $ touch a
4 $ hg add a
5 $ hg add a
@@ -1,4 +1,5 b''
1 $ hg init
1 $ hg init repo
2 $ cd repo
2 $ touch a
3 $ touch a
3
4
4 $ unset HGUSER
5 $ unset HGUSER
General Comments 0
You need to be logged in to leave comments. Login now