tests/test-merge-tools.t
changeset 15264 157d93c41c10
parent 15243 1e9451476bf8
child 15501 2371f4aea665
child 15519 bb9ad375b51c
--- a/tests/test-merge-tools.t	Sat Oct 15 00:39:06 2011 -0500
+++ b/tests/test-merge-tools.t	Wed Oct 12 21:45:58 2011 -0400
@@ -244,6 +244,30 @@
   # hg stat
   M f
 
+environment variables in true.executable are handled:
+
+  $ cat > $HGTMP/merge.sh <<EOF
+  > #!/bin/sh
+  > echo 'custom merge tool'
+  > EOF
+  $ chmod +x $HGTMP/merge.sh
+  $ domerge -r 2 --config merge-tools.true.executable='$HGTMP/merge.sh'
+  [merge-tools]
+  false.whatever=
+  true.priority=1
+  true.executable=cat
+  # hg update -C 1
+  # hg merge -r 2 --config merge-tools.true.executable=$HGTMP/merge.sh
+  merging f
+  custom merge tool
+  0 files updated, 1 files merged, 0 files removed, 0 files unresolved
+  (branch merge, don't forget to commit)
+  # cat f
+  revision 1
+  space
+  # hg stat
+  M f
+
 Tool selection and merge-patterns
 
 merge-patterns specifies new tool false: