[PATCH] test-resolve: fix '--tool f' invocation for Windows

Matt Harbison mharbison72 at gmail.com
Mon Nov 23 02:28:55 UTC 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1448245208 18000
#      Sun Nov 22 21:20:08 2015 -0500
# Node ID d7ce83eb0f422f2be6418c5a226d6101f0ac326b
# Parent  4baea37955acc2c6c99bfe61a32daabda2c64300
test-resolve: fix '--tool f' invocation for Windows

Windows can't invoke a python script directly, so invoke sh.exe instead.

According to sid0, the output changes are due to the fact that 'f' is no longer
being passed all of the args that it was, but these changes aren't essential to
the test [1].

[1] https://selenic.com/pipermail/mercurial-devel/2015-November/075768.html

diff --git a/tests/test-resolve.t b/tests/test-resolve.t
--- a/tests/test-resolve.t
+++ b/tests/test-resolve.t
@@ -221,21 +221,7 @@
 
 test .orig behavior with resolve
 
-  $ hg resolve -q file1 --tool 'f --dump $TESTTMP/repo/file1.orig'
-  */file1~base*: (glob)
-  >>>
-  foo
-  <<<
-  */file1~other*: (glob)
-  >>>
-  foo
-  bar
-  <<<
-  $TESTTMP/repo/file1: (glob)
-  >>>
-  foo
-  baz
-  <<<
+  $ hg resolve -q file1 --tool "sh -c 'f --dump \"$TESTTMP/repo/file1.orig\"'"
   $TESTTMP/repo/file1.orig: (glob)
   >>>
   foo


More information about the Mercurial-devel mailing list