# HG changeset patch # User Martin Geisler # Date 2009-04-26 12:29:02 # Node ID 6c82beaaa11a93443588dc2d6bc254d23b716623 # Parent 56719b1aa6f44bd24a022e6f3cdf29a91e3783b6 tests: removed redundant "-d '0 0'" from test scripts The tests are executed with a .hgrc file which adds "-d '0 0'" by default. diff --git a/tests/test-backout b/tests/test-backout --- a/tests/test-backout +++ b/tests/test-backout @@ -42,16 +42,16 @@ cd .. hg init branch cd branch echo a > a -hg ci -Am0 -d '0 0' +hg ci -Am0 echo b > b -hg ci -Am1 -d '0 0' +hg ci -Am1 hg co -C 0 # should fail -hg backout -d '0 0' 1 +hg backout 1 echo c > c -hg ci -Am2 -d '0 0' +hg ci -Am2 # should fail -hg backout -d '0 0' 1 +hg backout 1 echo '# backout with merge' cd .. diff --git a/tests/test-bookmarks-rebase b/tests/test-bookmarks-rebase --- a/tests/test-bookmarks-rebase +++ b/tests/test-bookmarks-rebase @@ -14,17 +14,17 @@ echo % initialize repository hg init echo 'a' > a -hg ci -A -d '0 0' -u test -m "0" +hg ci -A -u test -m "0" echo 'b' > b -hg ci -A -d '0 0' -u test -m "1" +hg ci -A -u test -m "1" hg up 0 echo 'c' > c -hg ci -A -d '0 0' -u test -m "2" +hg ci -A -u test -m "2" echo 'd' > d -hg ci -A -d '0 0' -u test -m "3" +hg ci -A -u test -m "3" hg bookmark -r 1 one hg bookmark -r 3 two @@ -35,4 +35,4 @@ hg bookmark echo % rebase hg rebase -s two -d one 2>&1 | cleanoutput -hg log \ No newline at end of file +hg log diff --git a/tests/test-bundle b/tests/test-bundle --- a/tests/test-bundle +++ b/tests/test-bundle @@ -117,14 +117,14 @@ hg init orig cd orig echo foo > foo hg add foo -hg ci -m 'add foo' -d '0 0' +hg ci -m 'add foo' hg clone . ../copy -hg tag -d '0 0' foo +hg tag foo cd ../copy echo >> foo -hg ci -m 'change foo' -d '0 0' +hg ci -m 'change foo' hg bundle ../bundle.hg ../orig cd ../orig diff --git a/tests/test-changelog-exec b/tests/test-changelog-exec --- a/tests/test-changelog-exec +++ b/tests/test-changelog-exec @@ -8,23 +8,23 @@ hg init repo cd repo echo foo > foo -hg ci -qAm 'add foo' -d '0 0' +hg ci -qAm 'add foo' echo bar > bar chmod +x bar -hg ci -qAm 'add bar' -d '0 0' +hg ci -qAm 'add bar' echo '% manifest of p2:' hg manifest echo hg up -qC 0 echo >> foo -hg ci -m 'change foo' -d '0 0' +hg ci -m 'change foo' echo '% manifest of p1:' hg manifest hg merge -hg ci -m 'merge' -d '0 0' +hg ci -m 'merge' echo '% this should not mention bar:' hg tip -v diff --git a/tests/test-clone b/tests/test-clone --- a/tests/test-clone +++ b/tests/test-clone @@ -7,14 +7,14 @@ cd a hg init echo a > a hg add a -hg commit -m test -d '0 0' +hg commit -m test echo first line > b hg add b # create a non-inlined filelog python -c 'for x in range(10000): print x' >> data1 for j in 0 1 2 3 4 5 6 7 8 9; do cat data1 >> b - hg commit -m test -d '0 0' + hg commit -m test done echo % "list files in store/data (should show a 'b.d')" for i in .hg/store/data/*; do diff --git a/tests/test-clone-failure b/tests/test-clone-failure --- a/tests/test-clone-failure +++ b/tests/test-clone-failure @@ -53,7 +53,7 @@ echo $? hg init c cd c echo c > c -hg commit -A -m test -d '0 0' +hg commit -A -m test chmod -rx .hg/store/data cd .. mkdir d diff --git a/tests/test-commit b/tests/test-commit --- a/tests/test-commit +++ b/tests/test-commit @@ -26,28 +26,28 @@ hg -q revert -a --no-backup mkdir dir echo boo > dir/file hg add -hg -v commit -d '0 0' -m commit-9 dir +hg -v commit -m commit-9 dir echo > dir.file hg add -hg commit -d '0 0' -m commit-10 dir dir.file +hg commit -m commit-10 dir dir.file echo >> dir/file mkdir bleh mkdir dir2 cd bleh -hg commit -d '0 0' -m commit-11 . -hg commit -d '0 0' -m commit-12 ../dir ../dir2 -hg -v commit -d '0 0' -m commit-13 ../dir +hg commit -m commit-11 . +hg commit -m commit-12 ../dir ../dir2 +hg -v commit -m commit-13 ../dir cd .. -hg commit -d '0 0' -m commit-14 does-not-exist +hg commit -m commit-14 does-not-exist ln -s foo baz -hg commit -d '0 0' -m commit-15 baz +hg commit -m commit-15 baz touch quux -hg commit -d '0 0' -m commit-16 quux +hg commit -m commit-16 quux echo >> dir/file -hg -v commit -d '0 0' -m commit-17 dir/file +hg -v commit -m commit-17 dir/file # An empty date was interpreted as epoch origin echo foo >> foo hg commit -d '' -m commit-no-date diff --git a/tests/test-convert-authormap b/tests/test-convert-authormap --- a/tests/test-convert-authormap +++ b/tests/test-convert-authormap @@ -9,7 +9,7 @@ EOF hg init orig cd orig echo foo > foo -HGUSER='user name' hg ci -qAm 'foo' -d '0 0' +HGUSER='user name' hg ci -qAm 'foo' cd .. # Explicit --authors diff --git a/tests/test-convert-hg-sink b/tests/test-convert-hg-sink --- a/tests/test-convert-hg-sink +++ b/tests/test-convert-hg-sink @@ -11,16 +11,16 @@ hg init orig cd orig echo foo > foo echo bar > bar -hg ci -qAm 'add foo and bar' -d '0 0' +hg ci -qAm 'add foo and bar' hg rm foo -hg ci -m 'remove foo' -d '0 0' +hg ci -m 'remove foo' mkdir foo echo file > foo/file -hg ci -qAm 'add foo/file' -d '0 0' +hg ci -qAm 'add foo/file' -hg tag -d '0 0' some-tag +hg tag some-tag hg log cd .. diff --git a/tests/test-copy2 b/tests/test-copy2 --- a/tests/test-copy2 +++ b/tests/test-copy2 @@ -17,7 +17,7 @@ hg cp bar foo hg rm -f bar rm bar hg st -A -hg commit -m1 -d"0 0" +hg commit -m1 echo "# dry-run; should show that foo is clean" hg copy --dry-run foo bar @@ -27,7 +27,7 @@ hg copy foo bar hg st -C echo "# shouldn't show copy" -hg commit -m2 -d"0 0" +hg commit -m2 hg st -C echo "# should match" @@ -36,7 +36,7 @@ hg debugrename bar echo bleah > foo echo quux > bar -hg commit -m3 -d"0 0" +hg commit -m3 echo "# should not be renamed" hg debugrename bar @@ -44,7 +44,7 @@ hg debugrename bar hg copy -f foo bar echo "# should show copy" hg st -C -hg commit -m3 -d"0 0" +hg commit -m3 echo "# should show no parents for tip" hg debugindex .hg/store/data/bar.i diff --git a/tests/test-diff-binary-file b/tests/test-diff-binary-file --- a/tests/test-diff-binary-file +++ b/tests/test-diff-binary-file @@ -4,13 +4,13 @@ hg init a cd a cp $TESTDIR/binfile.bin . hg add binfile.bin -hg ci -m 'add binfile.bin' -d '0 0' +hg ci -m 'add binfile.bin' echo >> binfile.bin -hg ci -m 'change binfile.bin' -d '0 0' +hg ci -m 'change binfile.bin' hg revert -r 0 binfile.bin -hg ci -m 'revert binfile.bin' -d '0 0' +hg ci -m 'revert binfile.bin' echo % diff -r 0 -r 1 hg diff --nodates -r 0 -r 1 diff --git a/tests/test-diff-ignore-whitespace b/tests/test-diff-ignore-whitespace --- a/tests/test-diff-ignore-whitespace +++ b/tests/test-diff-ignore-whitespace @@ -108,7 +108,7 @@ test_whitespace_changes_and_blank_lines( hg init printf 'hello world\ngoodbye world\n' >foo -hg ci -Amfoo -ufoo -d '0 0' +hg ci -Amfoo -ufoo test_added_blank_lines test_added_horizontal_space_first_on_a_line diff --git a/tests/test-dispatch b/tests/test-dispatch --- a/tests/test-dispatch +++ b/tests/test-dispatch @@ -6,7 +6,7 @@ hg init a cd a echo a > a -hg ci -Ama -d '0 0' +hg ci -Ama echo "# missing arg" hg cat diff --git a/tests/test-dumprevlog b/tests/test-dumprevlog --- a/tests/test-dumprevlog +++ b/tests/test-dumprevlog @@ -9,13 +9,13 @@ hg init echo this is file a > a hg add a -hg commit -m first -d '0 0' +hg commit -m first echo adding to file a >> a -hg commit -m second -d '0 0' +hg commit -m second echo adding more to file a >> a -hg commit -m third -d '0 0' +hg commit -m third hg verify diff --git a/tests/test-export b/tests/test-export --- a/tests/test-export +++ b/tests/test-export @@ -6,7 +6,7 @@ touch foo hg add foo for i in 0 1 2 3 4 5 6 7 8 9 10 11; do echo "foo-$i" >> foo - hg ci -m "foo-$i" -d "0 0" + hg ci -m "foo-$i" done for out in "%nof%N" "%%%H" "%b-%R" "%h" "%r"; do diff --git a/tests/test-fncache b/tests/test-fncache --- a/tests/test-fncache +++ b/tests/test-fncache @@ -8,7 +8,7 @@ echo echo "% add a; ci" echo "some text" > a hg add -hg ci -d '0 0' -m first +hg ci -m first echo echo "% cat .hg/store/fncache" @@ -19,7 +19,7 @@ echo "% add a.i/b; ci" mkdir a.i echo "some other text" > a.i/b hg add -hg ci -d '0 0' -m second +hg ci -m second echo echo "% cat .hg/store/fncache" @@ -30,7 +30,7 @@ echo "% add a.i.hg/c; ci" mkdir a.i.hg echo "yet another text" > a.i.hg/c hg add -hg ci -d '0 0' -m third +hg ci -m third echo echo "% cat .hg/store/fncache" diff --git a/tests/test-git-export b/tests/test-git-export --- a/tests/test-git-export +++ b/tests/test-git-export @@ -4,24 +4,24 @@ hg init a cd a echo start > start -hg ci -Amstart -d '0 0' +hg ci -Amstart echo new > new -hg ci -Amnew -d '0 0' +hg ci -Amnew echo '% new file' hg diff --git -r 0 hg cp new copy -hg ci -mcopy -d '0 0' +hg ci -mcopy echo '% copy' hg diff --git -r 1:tip hg mv copy rename -hg ci -mrename -d '0 0' +hg ci -mrename echo '% rename' hg diff --git -r 2:tip hg rm rename -hg ci -mdelete -d '0 0' +hg ci -mdelete echo '% delete' hg diff --git -r 3:tip @@ -32,16 +32,16 @@ 3 4 5 EOF -hg ci -Amsrc -d '0 0' +hg ci -Amsrc chmod +x src -hg ci -munexec -d '0 0' +hg ci -munexec echo '% chmod 644' hg diff --git -r 5:tip hg mv src dst chmod -x dst echo a >> dst -hg ci -mrenamemod -d '0 0' +hg ci -mrenamemod echo '% rename+mod+chmod' hg diff --git -r 6:tip @@ -68,14 +68,14 @@ hg diff --git echo echo '% diff across many revisions' hg mv dst dst2 -hg ci -m 'mv dst dst2' -d '0 0' +hg ci -m 'mv dst dst2' echo >> start -hg ci -m 'change start' -d '0 0' +hg ci -m 'change start' hg revert -r -2 start hg mv dst2 dst3 -hg ci -m 'mv dst2 dst3; revert start' -d '0 0' +hg ci -m 'mv dst2 dst3; revert start' hg diff --git -r 9:11 echo '% reversed' @@ -110,7 +110,7 @@ hg diff --git -r -1:-5 echo echo '% comparing with the working dir' echo >> start -hg ci -m 'change start again' -d '0 0' +hg ci -m 'change start again' echo > created hg add created diff --git a/tests/test-grep b/tests/test-grep --- a/tests/test-grep +++ b/tests/test-grep @@ -42,14 +42,14 @@ hg grep foobar echo blue >> color echo black >> color hg add color -hg ci -m 0 -d '0 0' +hg ci -m 0 echo orange >> color -hg ci -m 1 -d '0 0' +hg ci -m 1 echo black > color -hg ci -m 2 -d '0 0' +hg ci -m 2 echo orange >> color echo blue >> color -hg ci -m 3 -d '0 0' +hg ci -m 3 hg grep orange hg grep --all orange diff --git a/tests/test-hgweb b/tests/test-hgweb --- a/tests/test-hgweb +++ b/tests/test-hgweb @@ -6,7 +6,7 @@ cd test mkdir da echo foo > da/foo echo foo > foo -hg ci -Ambase -d '0 0' +hg ci -Ambase hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log cat hg.pid >> $DAEMON_PIDS echo % manifest diff --git a/tests/test-hgweb-commands b/tests/test-hgweb-commands --- a/tests/test-hgweb-commands +++ b/tests/test-hgweb-commands @@ -11,7 +11,7 @@ cd test mkdir da echo foo > da/foo echo foo > foo -hg ci -d'0 0' -Ambase +hg ci -Ambase hg tag 1.0 hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log cat hg.pid >> $DAEMON_PIDS diff --git a/tests/test-hgweb-no-path-info b/tests/test-hgweb-no-path-info --- a/tests/test-hgweb-no-path-info +++ b/tests/test-hgweb-no-path-info @@ -8,7 +8,7 @@ cd repo hg init echo foo > bar hg add bar -hg commit -m "test" -d "0 0" -u "Testing" +hg commit -m "test" -u "Testing" hg tip cat > request.py < bar hg add bar -hg commit -m "test" -d "0 0" -u "Testing" +hg commit -m "test" -u "Testing" hg tip cat > request.py <foo -hg commit -A -d '0 0' -m 1 +hg commit -A -m 1 hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=../hg1.pid hg serve -p $HGPORT1 -d --pid-file=../hg2.pid # Test server address cannot be reused diff --git a/tests/test-import b/tests/test-import --- a/tests/test-import +++ b/tests/test-import @@ -5,7 +5,7 @@ mkdir a/d1 mkdir a/d1/d2 echo line 1 > a/a echo line 1 > a/d1/d2/a -hg --cwd a ci -d '0 0' -Ama +hg --cwd a ci -Ama echo line 2 >> a/a hg --cwd a ci -u someone -d '1 0' -m'second change' diff --git a/tests/test-issue522 b/tests/test-issue522 --- a/tests/test-issue522 +++ b/tests/test-issue522 @@ -10,21 +10,21 @@ hg init repo cd repo echo foo > foo -hg ci -d '0 0' -qAm 'add foo' +hg ci -qAm 'add foo' echo bar >> foo -hg ci -d '0 0' -m 'change foo' +hg ci -m 'change foo' -hg backout -d '0 0' -r tip -m 'backout changed foo' +hg backout -r tip -m 'backout changed foo' hg up -C 0 touch bar -hg ci -d '0 0' -qAm 'add bar' +hg ci -qAm 'add bar' hg merge --debug hg debugstate | grep foo hg st -A foo -hg ci -d '0 0' -m 'merge' +hg ci -m 'merge' hg manifest --debug | grep foo hg debugindex .hg/store/data/foo.i diff --git a/tests/test-issue672 b/tests/test-issue672 --- a/tests/test-issue672 +++ b/tests/test-issue672 @@ -11,21 +11,21 @@ cd t touch 1 touch 2 -hg commit -Am init -d "0 0" # 0 +hg commit -Am init # 0 hg rename 1 1a -hg commit -m rename -d "0 0" # 1 +hg commit -m rename # 1 hg co -C 0 echo unrelated >> 2 -hg ci -m unrelated1 -d "0 0" # 2 +hg ci -m unrelated1 # 2 hg merge --debug 1 -hg ci -m merge1 -d "0 0" # 3 +hg ci -m merge1 # 3 hg co -C 2 echo hello >> 1 -hg ci -m unrelated2 -d "0 0" # 4 +hg ci -m unrelated2 # 4 hg co -C 3 hg merge -y --debug 4 diff --git a/tests/test-keyword b/tests/test-keyword --- a/tests/test-keyword +++ b/tests/test-keyword @@ -63,7 +63,7 @@ echo % status hg status echo % commit -hg --debug commit -mabsym -d '0 0' -u 'User Name ' +hg --debug commit -mabsym -u 'User Name ' echo % status hg status echo % identify diff --git a/tests/test-mactext b/tests/test-mactext --- a/tests/test-mactext +++ b/tests/test-mactext @@ -23,10 +23,10 @@ echo echo hello > f hg add f -hg ci -m 1 -d'0 0' +hg ci -m 1 echo python unix2mac.py f -hg ci -m 2 -d'0 0' +hg ci -m 2 hg cat f | python print.py cat f | python print.py diff --git a/tests/test-merge-commit b/tests/test-merge-commit --- a/tests/test-merge-commit +++ b/tests/test-merge-commit @@ -7,22 +7,22 @@ cd a echo line1 > foo hg add foo -hg ci -m '0: add foo' -d '0 0' +hg ci -m '0: add foo' echo line2 >> foo -hg ci -m '1: change foo' -d '0 0' +hg ci -m '1: change foo' hg up -C 0 hg mv foo bar rm bar echo line0 > bar echo line1 >> bar -hg ci -m '2: mv foo bar; change bar' -d '0 0' +hg ci -m '2: mv foo bar; change bar' hg merge 1 echo '% contents of bar should be line0 line1 line2' cat bar -hg ci -m '3: merge with local rename' -d '0 0' +hg ci -m '3: merge with local rename' hg debugindex .hg/store/data/bar.i hg debugrename bar hg debugindex .hg/store/data/foo.i @@ -31,14 +31,14 @@ hg debugindex .hg/store/data/foo.i hg up -C 2 rm bar echo line1 > bar -hg ci -m '4: revert content change from rev 2' -d '0 0' +hg ci -m '4: revert content change from rev 2' hg log --template '#rev#:#node|short# #parents#\n' echo '% this should use bar@rev2 as the ancestor' hg --debug merge 3 echo '% contents of bar should be line1 line2' cat bar -hg ci -m '5: merge' -d '0 0' +hg ci -m '5: merge' hg debugindex .hg/store/data/bar.i @@ -53,7 +53,7 @@ hg up -C 1 hg merge 2 echo '% contents of bar should be line0 line1 line2' cat bar -hg ci -m '3: merge with remote rename' -d '0 0' +hg ci -m '3: merge with remote rename' hg debugindex .hg/store/data/bar.i hg debugrename bar hg debugindex .hg/store/data/foo.i @@ -62,13 +62,13 @@ hg debugindex .hg/store/data/foo.i hg up -C 2 rm bar echo line1 > bar -hg ci -m '4: revert content change from rev 2' -d '0 0' +hg ci -m '4: revert content change from rev 2' hg log --template '#rev#:#node|short# #parents#\n' echo '% this should use bar@rev2 as the ancestor' hg --debug merge 3 echo '% contents of bar should be line1 line2' cat bar -hg ci -m '5: merge' -d '0 0' +hg ci -m '5: merge' hg debugindex .hg/store/data/bar.i diff --git a/tests/test-merge9 b/tests/test-merge9 --- a/tests/test-merge9 +++ b/tests/test-merge9 @@ -8,18 +8,18 @@ cd repo echo foo > foo echo a > bar -hg ci -Am 'add foo' -d '0 0' +hg ci -Am 'add foo' hg mv foo baz echo b >> bar echo quux > quux1 -hg ci -Am 'mv foo baz' -d '0 0' +hg ci -Am 'mv foo baz' hg up -qC 0 echo >> foo echo c >> bar echo quux > quux2 -hg ci -Am 'change foo' -d '0 0' +hg ci -Am 'change foo' # test with the rename on the remote side HGMERGE=false hg merge diff --git a/tests/test-mq b/tests/test-mq --- a/tests/test-mq +++ b/tests/test-mq @@ -251,7 +251,7 @@ echo '% cd b; hg qrefresh' hg init refresh cd refresh echo a > a -hg ci -Ama -d'0 0' +hg ci -Ama hg qnew -mfoo foo echo a >> a hg qrefresh @@ -410,14 +410,14 @@ hg init strip cd strip touch foo hg add foo -hg ci -m 'add foo' -d '0 0' +hg ci -m 'add foo' echo >> foo -hg ci -m 'change foo 1' -d '0 0' +hg ci -m 'change foo 1' hg up -C 0 echo 1 >> foo -hg ci -m 'change foo 2' -d '0 0' +hg ci -m 'change foo 2' HGMERGE=true hg merge -hg ci -m merge -d '0 0' +hg ci -m merge hg log hg strip 1 2>&1 | sed 's/\(saving bundle to \).*/\1/' checkundo strip diff --git a/tests/test-mq-qpush-fail b/tests/test-mq-qpush-fail --- a/tests/test-mq-qpush-fail +++ b/tests/test-mq-qpush-fail @@ -9,7 +9,7 @@ hg init repo cd repo echo foo > foo -hg ci -Am 'add foo' -d '0 0' +hg ci -Am 'add foo' touch untracked-file echo 'syntax: glob' > .hgignore diff --git a/tests/test-non-interactive-wsgi b/tests/test-non-interactive-wsgi --- a/tests/test-non-interactive-wsgi +++ b/tests/test-non-interactive-wsgi @@ -7,7 +7,7 @@ cd repo hg init echo foo > bar hg add bar -hg commit -m "test" -d "0 0" +hg commit -m "test" hg tip cat > request.py <> foo - hg commit -d '0 0' -qAm "$msg" + hg commit -qAm "$msg" } hg init repo diff --git a/tests/test-pull-http b/tests/test-pull-http --- a/tests/test-pull-http +++ b/tests/test-pull-http @@ -5,13 +5,13 @@ cp "$TESTDIR"/printenv.py . hg init test cd test echo a > a -hg ci -Ama -d '0 0' +hg ci -Ama cd .. hg clone test test2 cd test2 echo a >> a -hg ci -mb -d '0 0' +hg ci -mb echo % expect error, cloning not allowed echo '[web]' > .hg/hgrc diff --git a/tests/test-pull-r b/tests/test-pull-r --- a/tests/test-pull-r +++ b/tests/test-pull-r @@ -3,12 +3,12 @@ hg init repo cd repo echo foo > foo -hg ci -qAm 'add foo' -d '0 0' +hg ci -qAm 'add foo' echo >> foo -hg ci -m 'change foo' -d '0 0' +hg ci -m 'change foo' hg up -qC 0 echo bar > bar -hg ci -qAm 'add bar' -d '0 0' +hg ci -qAm 'add bar' hg log cd .. hg init copy diff --git a/tests/test-push-http b/tests/test-push-http --- a/tests/test-push-http +++ b/tests/test-push-http @@ -5,13 +5,13 @@ cp "$TESTDIR"/printenv.py . hg init test cd test echo a > a -hg ci -Ama -d '0 0' +hg ci -Ama cd .. hg clone test test2 cd test2 echo a >> a -hg ci -mb -d '0 0' +hg ci -mb req() { hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log diff --git a/tests/test-qrecord b/tests/test-qrecord --- a/tests/test-qrecord +++ b/tests/test-qrecord @@ -47,7 +47,7 @@ me EOF hg add 1.txt 2.txt dir/a.txt -hg commit -d '0 0' -m 'initial checkin' +hg commit -m 'initial checkin' echo % changing files diff --git a/tests/test-rename-dir-merge b/tests/test-rename-dir-merge --- a/tests/test-rename-dir-merge +++ b/tests/test-rename-dir-merge @@ -7,27 +7,27 @@ hg init mkdir a echo foo > a/a echo bar > a/b -hg ci -Am "0" -d "0 0" +hg ci -Am "0" hg co -C 0 hg mv a b -hg ci -m "1 mv a/ b/" -d "0 0" +hg ci -m "1 mv a/ b/" hg co -C 0 echo baz > a/c echo quux > a/d hg add a/c -hg ci -m "2 add a/c" -d "0 0" +hg ci -m "2 add a/c" hg merge --debug 1 echo a/* b/* hg st -C -hg ci -m "3 merge 2+1" -d "0 0" +hg ci -m "3 merge 2+1" hg debugrename b/c hg co -C 1 hg merge --debug 2 echo a/* b/* hg st -C -hg ci -m "4 merge 1+2" -d "0 0" +hg ci -m "4 merge 1+2" hg debugrename b/c diff --git a/tests/test-rename-merge1 b/tests/test-rename-merge1 --- a/tests/test-rename-merge1 +++ b/tests/test-rename-merge1 @@ -8,20 +8,20 @@ echo "followcopies = 1" >> .hg/hgrc echo foo > a echo foo > a2 hg add a a2 -hg ci -m "start" -d "0 0" +hg ci -m "start" hg mv a b hg mv a2 b2 -hg ci -m "rename" -d "0 0" +hg ci -m "rename" echo "checkout" hg co 0 echo blahblah > a echo blahblah > a2 hg mv a2 c2 -hg ci -m "modify" -d "0 0" +hg ci -m "modify" echo "merge" hg merge -y --debug hg status -AC cat b -hg ci -m "merge" -d "0 0" +hg ci -m "merge" hg debugindex .hg/store/data/b.i -hg debugrename b \ No newline at end of file +hg debugrename b diff --git a/tests/test-rename-merge2 b/tests/test-rename-merge2 --- a/tests/test-rename-merge2 +++ b/tests/test-rename-merge2 @@ -30,18 +30,18 @@ tm() echo base > a echo base > rev # used to force commits hg add a rev - hg ci -m "base" -d "0 0" + hg ci -m "base" # remote echo remote > rev if [ "$2" != "" ] ; then $2 ; fi - hg ci -m "remote" -d "0 0" + hg ci -m "remote" # local hg co -q 0 echo local > rev if [ "$1" != "" ] ; then $1 ; fi - hg ci -m "local" -d "0 0" + hg ci -m "local" # working dir echo local > rev @@ -56,7 +56,7 @@ tm() echo "--------------" hg status -camC -X rev - hg ci -m "merge" -d "0 0" + hg ci -m "merge" echo "--------------" echo diff --git a/tests/test-resolve b/tests/test-resolve --- a/tests/test-resolve +++ b/tests/test-resolve @@ -6,22 +6,22 @@ hg init repo cd repo echo foo > file -hg commit -Am 'add file' -d '0 0' +hg commit -Am 'add file' echo bar >> file -hg commit -Am 'append bar' -d '0 0' +hg commit -Am 'append bar' echo % create a second head hg up -C 0 echo baz >> file -hg commit -Am 'append baz' -d '0 0' +hg commit -Am 'append baz' echo % failing merge HGMERGE=internal:fail hg merge echo resolved > file hg resolve -m file -hg commit -m 'resolved' -d '0 0' +hg commit -m 'resolved' echo % resolve -l, should be empty hg resolve -l diff --git a/tests/test-strict b/tests/test-strict --- a/tests/test-strict +++ b/tests/test-strict @@ -3,7 +3,7 @@ hg init echo a > a -hg ci -d '0 0' -Ama +hg ci -Ama hg an a diff --git a/tests/test-transplant b/tests/test-transplant --- a/tests/test-transplant +++ b/tests/test-transplant @@ -73,7 +73,7 @@ bar baz EOF echo toremove > toremove -hg ci -Amfoo -d '0 0' +hg ci -Amfoo cat < foo foo2 bar2 @@ -81,14 +81,14 @@ baz2 EOF rm toremove echo added > added -hg ci -Amfoo2 -d '0 0' +hg ci -Amfoo2 echo bar > bar -hg ci -Ambar -d '0 0' +hg ci -Ambar echo bar2 >> bar -hg ci -mbar2 -d '0 0' +hg ci -mbar2 hg up 0 echo foobar > foo -hg ci -mfoobar -d '0 0' +hg ci -mfoobar hg transplant 1:3 # transplant -c shouldn't use an old changeset hg up -C diff --git a/tests/test-url-rev b/tests/test-url-rev --- a/tests/test-url-rev +++ b/tests/test-url-rev @@ -4,10 +4,10 @@ hg init repo cd repo echo a > a -hg ci -qAm 'add a' -d '0 0' +hg ci -qAm 'add a' hg branch foo echo >> a -hg ci -m 'change a' -d '0 0' +hg ci -m 'change a' cd .. echo '% clone repo#foo' @@ -22,10 +22,10 @@ echo echo '% changing original repo' cd repo echo >> a -hg ci -m 'new head of branch foo' -d '0 0' +hg ci -m 'new head of branch foo' hg up -qC default echo bar > bar -hg ci -qAm 'add bar' -d '0 0' +hg ci -qAm 'add bar' hg log echo diff --git a/tests/test-verify b/tests/test-verify --- a/tests/test-verify +++ b/tests/test-verify @@ -7,7 +7,7 @@ echo "some text" > FOO.txt echo "another text" > bar.txt echo "more text" > QUICK.txt hg add -hg ci -d '0 0' -mtest1 +hg ci -mtest1 echo echo % verify diff --git a/tests/test-win32text b/tests/test-win32text --- a/tests/test-win32text +++ b/tests/test-win32text @@ -26,7 +26,7 @@ echo echo hello > f hg add f echo commit should succeed -hg ci -m 1 -d'0 0' +hg ci -m 1 echo hg clone . ../zoz @@ -34,14 +34,14 @@ cp .hg/hgrc ../zoz/.hg python unix2dos.py f echo commit should fail -hg ci -m 2.1 -d'0 0' +hg ci -m 2.1 echo mv .hg/hgrc .hg/hgrc.bak echo commits should succeed -hg ci -m 2 -d'0 0' +hg ci -m 2 hg cp f g -hg ci -m 2.2 -d'0 0' +hg ci -m 2.2 echo echo push should fail @@ -52,7 +52,7 @@ mv .hg/hgrc.bak .hg/hgrc echo hello > f hg rm g echo commit should succeed -hg ci -m 2.3 -d'0 0' +hg ci -m 2.3 echo echo push should succeed @@ -64,18 +64,18 @@ mkdir d echo hello > d/f2 python unix2dos.py d/f2 hg add d/f2 -hg ci -m 3 -d'0 0' +hg ci -m 3 hg revert -a rm d/f2 echo hg rem f -hg ci -m 4 -d'0 0' +hg ci -m 4 echo python -c 'file("bin", "wb").write("hello\x00\x0D\x0A")' hg add bin -hg ci -m 5 -d'0 0' +hg ci -m 5 hg log -v echo @@ -84,9 +84,9 @@ echo for x in a b c d; do echo content > dupe/$x; done hg -R dupe add python unix2dos.py dupe/b dupe/c dupe/d -hg -R dupe ci -m a -d'0 0' dupe/a -hg -R dupe ci -m b/c -d'0 0' dupe/[bc] -hg -R dupe ci -m d -d'0 0' dupe/d +hg -R dupe ci -m a dupe/a +hg -R dupe ci -m b/c dupe/[bc] +hg -R dupe ci -m d dupe/d hg -R dupe log -v echo @@ -100,7 +100,7 @@ rm .hg/hgrc (echo some; echo text) > f3 python -c 'file("f4.bat", "wb").write("rem empty\x0D\x0A")' hg add f3 f4.bat -hg ci -m 6 -d'0 0' +hg ci -m 6 python print.py < bin python print.py < f3 @@ -125,7 +125,7 @@ echo python -c 'file("f5.sh", "wb").write("# empty\x0D\x0A")' hg add f5.sh -hg ci -m 7 -d'0 0' +hg ci -m 7 python print.py < f5.sh hg cat f5.sh | python print.py