[PATCH 3 of 4] Find right hg command for detached process

Nicolas Dumazet nicdumz at gmail.com
Mon Jan 11 21:51:05 CST 2010


hello!

2010/1/11 Patrick Mezard <pmezard at gmail.com>:

> +def hgcmd():
> +    """Return the command used to execute current hg
> +
> +    This is different from hgexecutable() because on Windows we want
> +    to avoid things opening new shell windows like batch files, so we
> +    get either the python call or current executable.
> +    """
> +    if main_is_frozen():
> +        return sys.executable
> +    return gethgcmd()

what about util.hgexecutable() ?
Isn't it doing something very similar?

If the result is somehow different, i'd like to include the behavior
you want in hgexecutable, possibly with an optional parameter?

Regards,

-- 
Nicolas Dumazet — NicDumZ


More information about the Mercurial-devel mailing list