[ANN] tortoise-hg
Andrei Vermel
avermel at mail.ru
Thu Apr 26 16:34:11 CDT 2007
Yes, this resolves the problem.
Thank you.
> That breaks down if you have filenames with spaces in it. Qct tries to
> use the non-shell based interface (passing in command line arguments as
> a list []) in order to avoid all the shell escaping hell that you
> normally have to jump through.
Good point.
Andrei
----- Original Message -----
From: "Steve Borho" <steve at borho.org>
To: "Andrei Vermel" <avermel at mail.ru>
Sent: Friday, April 27, 2007 1:27 AM
Subject: Re: [ANN] tortoise-hg
> On Thursday 26 April 2007 3:28:06 pm you wrote:
>> Interestingly this seems to be a peculiarity of subprocess.Popen.
>> os.popen can call 'hg whatever' with hg being hg.cmd (bat,exe).
>
> Can you try this code snippet in qctlib/vcs/hg.py?
>
> # Find the mercurial binary name
> tries = ['hg', 'hg.cmd', 'hg.bat', 'hg.exe']
> for name in tries:
> try:
> if findInSystemPath(name):
> runProgram([name, 'version'])
> self.hg_exe = name
> break
> except:
> pass
> else:
> print "Unable to find hg (.exe, .bat, .cmd) in your path"
> return -1
>
>
> --
> Steve Borho (steve at borho.org)
> http://www.borho.org/~steve/steve.asc
> Key fingerprint = 2D08 E7CF B624 624C DE1F E2E4 B0C2 5292 F2C6 2C8C
>
More information about the Mercurial
mailing list