Show More
@@ -331,11 +331,19 b' Fallback to merge-tools.tool.executable|' | |||
|
331 | 331 | #if execbit |
|
332 | 332 | $ chmod +x dir/tool.sh |
|
333 | 333 | #endif |
|
334 | $ tool=`pwd`/dir/tool.sh | |
|
335 | 334 | |
|
336 | TODO: Fix this on Windows. It currently tries to run 'tl a.* a', instead of | |
|
337 | falling back to tool.sh | |
|
338 | #if no-windows | |
|
335 | Windows can't run *.sh directly, so create a shim executable that can be. | |
|
336 | Without something executable, the next hg command will try to run `tl` instead | |
|
337 | of $tool (and fail). | |
|
338 | #if windows | |
|
339 | $ cat > dir/tool.bat <<EOF | |
|
340 | > @sh -c "`pwd`/dir/tool.sh %1 %2" | |
|
341 | > EOF | |
|
342 | $ tool=`pwd`/dir/tool.bat | |
|
343 | #else | |
|
344 | $ tool=`pwd`/dir/tool.sh | |
|
345 | #endif | |
|
346 | ||
|
339 | 347 | $ hg --debug tl --config extdiff.tl= --config merge-tools.tl.executable=$tool |
|
340 | 348 | making snapshot of 2 files from rev * (glob) |
|
341 | 349 | a |
@@ -343,11 +351,11 b' falling back to tool.sh' | |||
|
343 | 351 | making snapshot of 2 files from working directory |
|
344 | 352 | a |
|
345 | 353 | b |
|
346 |
running '$TESTTMP/a/dir/tool. |
|
|
354 | running '$TESTTMP/a/dir/tool.bat a.* a' in */extdiff.* (glob) (windows !) | |
|
355 | running '$TESTTMP/a/dir/tool.sh a.* a' in */extdiff.* (glob) (no-windows !) | |
|
347 | 356 | ** custom diff ** |
|
348 | 357 | cleaning up temp directory |
|
349 | 358 | [1] |
|
350 | #endif | |
|
351 | 359 |
|
|
352 | 360 | $ cd .. |
|
353 | 361 |
General Comments 0
You need to be logged in to leave comments.
Login now