Show More
@@ -294,8 +294,11 b' def findhg():' | |||||
294 | hgenv['LANGUAGE'] = 'C' |
|
294 | hgenv['LANGUAGE'] = 'C' | |
295 | hgcmd = ['hg'] |
|
295 | hgcmd = ['hg'] | |
296 | # Run a simple "hg log" command just to see if using hg from the user's |
|
296 | # Run a simple "hg log" command just to see if using hg from the user's | |
297 | # path works and can successfully interact with this repository. |
|
297 | # path works and can successfully interact with this repository. Windows | |
|
298 | # gives precedence to hg.exe in the current directory, so fall back to the | |||
|
299 | # python invocation of local hg, where pythonXY.dll can always be found. | |||
298 | check_cmd = ['log', '-r.', '-Ttest'] |
|
300 | check_cmd = ['log', '-r.', '-Ttest'] | |
|
301 | if os.name != 'nt': | |||
299 | try: |
|
302 | try: | |
300 | retcode, out, err = runcmd(hgcmd + check_cmd, hgenv) |
|
303 | retcode, out, err = runcmd(hgcmd + check_cmd, hgenv) | |
301 | except EnvironmentError: |
|
304 | except EnvironmentError: |
General Comments 0
You need to be logged in to leave comments.
Login now