Mercurial > hg-stable
changeset 4365:46280c004f22
change tests to use simplemerge by default
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 16 Apr 2007 20:17:39 -0300 |
parents | d5c3a70f8422 |
children | 390d110a57b8 |
files | tests/run-tests.py tests/test-annotate tests/test-backout tests/test-conflict tests/test-conflict.out tests/test-globalopts tests/test-install tests/test-merge-commit tests/test-merge-local tests/test-merge-local.out tests/test-merge-revert tests/test-merge-revert2 tests/test-merge-revert2.out tests/test-merge7 tests/test-merge7.out tests/test-up-local-change |
diffstat | 16 files changed, 27 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/run-tests.py Mon Apr 16 20:17:39 2007 -0300 @@ -19,7 +19,7 @@ import tempfile import time -required_tools = ["python", "diff", "grep", "unzip", "gunzip", "bunzip2", "sed", "merge"] +required_tools = ["python", "diff", "grep", "unzip", "gunzip", "bunzip2", "sed"] parser = optparse.OptionParser("%prog [options] [tests]") parser.add_option("-v", "--verbose", action="store_true", @@ -340,17 +340,18 @@ os.environ['LANG'] = os.environ['LC_ALL'] = 'C' os.environ['TZ'] = 'GMT' -os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"' -os.environ["HGMERGE"] = sys.executable + ' -c "import sys; sys.exit(0)"' -os.environ["HGUSER"] = "test" -os.environ["HGENCODING"] = "ascii" -os.environ["HGENCODINGMODE"] = "strict" - TESTDIR = os.environ["TESTDIR"] = os.getcwd() HGTMP = os.environ["HGTMP"] = tempfile.mkdtemp("", "hgtests.") DAEMON_PIDS = os.environ["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids') HGRCPATH = os.environ["HGRCPATH"] = os.path.join(HGTMP, '.hgrc') +os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"' +os.environ["HGMERGE"] = 'python "%s"' % os.path.join(TESTDIR, os.path.pardir, + 'contrib', 'simplemerge') +os.environ["HGUSER"] = "test" +os.environ["HGENCODING"] = "ascii" +os.environ["HGENCODINGMODE"] = "strict" + vlog("# Using TESTDIR", TESTDIR) vlog("# Using HGTMP", HGTMP)
--- a/tests/test-annotate Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-annotate Mon Apr 16 20:17:39 2007 -0300 @@ -1,5 +1,7 @@ #!/bin/sh +HGMERGE=true; export HGMERGE + echo % init hg init
--- a/tests/test-backout Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-backout Mon Apr 16 20:17:39 2007 -0300 @@ -1,5 +1,7 @@ #!/bin/sh +HGMERGE=true; export HGMERGE + echo '# basic operation' hg init basic cd basic
--- a/tests/test-conflict Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-conflict Mon Apr 16 20:17:39 2007 -0300 @@ -9,7 +9,6 @@ hg co 0 echo "something else" > a hg commit -m branch2 -d "1000000 0" -HGMERGE=merge; export HGMERGE hg merge 1 hg id egrep -v ">>>|<<<" a
--- a/tests/test-conflict.out Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-conflict.out Mon Apr 16 20:17:39 2007 -0300 @@ -1,5 +1,5 @@ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved -merge: warning: conflicts during merge +warning: conflicts during merge. merging a merging a failed! 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
--- a/tests/test-globalopts Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-globalopts Mon Apr 16 20:17:39 2007 -0300 @@ -17,7 +17,7 @@ hg clone a c cd c hg pull -f ../b -HGMERGE=merge hg merge +hg merge cd ..
--- a/tests/test-install Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-install Mon Apr 16 20:17:39 2007 -0300 @@ -1,3 +1,3 @@ #!/bin/sh -HGMERGE=merge hg debuginstall +hg debuginstall
--- a/tests/test-merge-commit Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-merge-commit Mon Apr 16 20:17:39 2007 -0300 @@ -1,9 +1,6 @@ #!/bin/sh # check that renames are correctly saved by a commit after a merge -HGMERGE=merge -export HGMERGE - # test with the merge on 3 having the rename on the local parent hg init a cd a
--- a/tests/test-merge-local Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-merge-local Mon Apr 16 20:17:39 2007 -0300 @@ -38,13 +38,13 @@ hg st echo "# local merge with conflicts" -HGMERGE=merge hg co +hg co hg co 0 hg diff --nodates | grep "^[+-][^<>]" hg st echo "# local merge without conflicts" hg revert zzz2_merge_bad -HGMERGE=merge hg co +hg co hg diff --nodates | grep "^[+-][^<>]" hg st
--- a/tests/test-merge-local.out Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-merge-local.out Mon Apr 16 20:17:39 2007 -0300 @@ -36,7 +36,7 @@ M zzz1_merge_ok M zzz2_merge_bad # local merge with conflicts -merge: warning: conflicts during merge +warning: conflicts during merge. merging zzz1_merge_ok merging zzz2_merge_bad merging zzz2_merge_bad failed!
--- a/tests/test-merge-revert Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-merge-revert Mon Apr 16 20:17:39 2007 -0300 @@ -25,7 +25,7 @@ hg id hg update -C 0 echo "changed file1" >> file1 -HGMERGE=merge hg update +hg update hg diff hg status hg id
--- a/tests/test-merge-revert2 Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-merge-revert2 Mon Apr 16 20:17:39 2007 -0300 @@ -26,7 +26,7 @@ hg id hg update -C 0 echo "changed file1 different" >> file1 -HGMERGE=merge hg update +hg update hg diff --nodates | sed -e "s/\(<<<<<<<\) .*/\1/" -e "s/\(>>>>>>>\) .*/\1/" hg status hg id
--- a/tests/test-merge-revert2.out Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-merge-revert2.out Mon Apr 16 20:17:39 2007 -0300 @@ -9,7 +9,7 @@ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved f248da0d4c3e tip 1 files updated, 0 files merged, 0 files removed, 0 files unresolved -merge: warning: conflicts during merge +warning: conflicts during merge. merging file1 merging file1 failed! 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
--- a/tests/test-merge7 Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-merge7 Mon Apr 16 20:17:39 2007 -0300 @@ -35,7 +35,7 @@ # now pull and merge from test-a hg pull ../test-a -HGMERGE=merge hg merge +hg merge # resolve conflict cat >test.txt <<"EOF" one @@ -57,7 +57,7 @@ # pull and merge from test-a again cd ../test-b hg pull ../test-a -HGMERGE=merge hg merge --debug +hg merge --debug cat test.txt | sed "s% .*%%"
--- a/tests/test-merge7.out Mon Apr 16 20:17:39 2007 -0300 +++ b/tests/test-merge7.out Mon Apr 16 20:17:39 2007 -0300 @@ -6,7 +6,7 @@ adding file changes added 1 changesets with 1 changes to 1 files (+1 heads) (run 'hg heads' to see heads, 'hg merge' to merge) -merge: warning: conflicts during merge +warning: conflicts during merge. merging test.txt merging test.txt failed! 0 files updated, 0 files merged, 0 files removed, 1 files unresolved @@ -20,7 +20,7 @@ adding file changes added 1 changesets with 1 changes to 1 files (+1 heads) (run 'hg heads' to see heads, 'hg merge' to merge) -merge: warning: conflicts during merge +warning: conflicts during merge. resolving manifests overwrite None partial False ancestor faaea63e63a9 local 451c744aabcc+ remote a070d41e8360