test-filebranch: avoid a shell script
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 27 Mar 2007 01:41:16 -0300
changeset 4293 b0140ead7f70
parent 4292 b90e323a4781
child 4294 ccfe423d3d0a
test-filebranch: avoid a shell script
tests/test-filebranch
--- a/tests/test-filebranch	Sat Dec 30 21:33:45 2006 +0200
+++ b/tests/test-filebranch	Tue Mar 27 01:41:16 2007 -0300
@@ -3,11 +3,11 @@
 # This test makes sure that we don't mark a file as merged with its ancestor
 # when we do a merge.
 
-cat <<'EOF' > merge
-#!/bin/sh
-echo merging for `basename $1`
+cat <<EOF > merge
+import sys, os
+print "merging for", os.path.basename(sys.argv[1])
 EOF
-chmod +x merge
+HGMERGE="python ../merge"; export HGMERGE
 
 echo creating base
 hg init a
@@ -41,7 +41,7 @@
 
 echo merging
 hg pull ../a
-env HGMERGE=../merge hg merge -v
+hg merge -v
 
 echo 2m > foo
 echo 2b > baz