Porting test-tag.t

Adrian Buehlmann adrian at cadifra.com
Fri Jun 1 14:36:13 CDT 2012


On 2012-06-01 20:43, Mads Kiilerich wrote:
> On 01/06/12 20:06, Adrian Buehlmann wrote:
>> Using the python trick you mentioned (but using "hg" instead of "hg.py")
> 
> You don't rename hg to hg.py as the wiki recommends?

Eh, what? No. I didn't rename anything.

Basically, on Windows all I do is

  $ hg update -r <some version>
  $ python setup.py build_ext -i

This compiles the python extension modules in-place using the MS
compiler. Then I do

  $ cd tests
  $ python run-test.py --local

And yes, I do have TortoiseHg installed globally, so a hg.exe is in my
PATH obviously. And I do not intend to rename anything in the TortoiseHg
install directory.

> That will
> apparently work on some windows versions, but on other windows versions 
> (or machines where python is installed globally?) bash and/or cmd will 
> prefer 'hg' over 'hg.exe' and thus launch hg incorrectly somehow. I 
> recommend doing the move to avoid that source of error while 
> investigating other problems.

How can it possibly pick up a different hg if I specify

  python "$TESTDIR/../hg"

as I wrote in

>   $ hg -R repo-tag --config hooks.commit="python \"$TESTDIR/../hg\"
push \"`pwd`/repo-tag-target\"" tag tag



More information about the Mercurial-devel mailing list