Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/help.py @ 5062:3d35c8cb5eb4
Simplify/correct finding the hg executable (fixes issue644)
Simply use find_exe('hg') as the default value for $HG and require to manually
set it if you have special requirements.
While the default will not always be 100% correct (i.e. the identical hg
version) for many users it is and for the others the hg executable found in
the PATH should do most things correctly.
Developers or other users with multiple installs can set $HG or run something
like util.set_hgexecutable in their shell or python scripts.
Additionally util.hgexecutable() is now available so extensions can access
the value with a public interface, too.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 04 Aug 2007 22:25:12 +0200 |
parents | 849f011dbf79 |
children | 3c80ecdc1bcd |
comparison
equal
deleted
inserted
replaced
5061:a49f2a4d5ff7 | 5062:3d35c8cb5eb4 |
---|---|
36 ''', | 36 ''', |
37 | 37 |
38 'environment|env|Environment Variables': | 38 'environment|env|Environment Variables': |
39 r''' | 39 r''' |
40 HG:: | 40 HG:: |
41 Path to the 'hg' executable, automatically passed when running hooks | 41 Path to the 'hg' executable, automatically passed when running hooks, |
42 or external tools. Falls back to 'hg' if unset and the value can't be | 42 extensions or external tools. If unset or empty, an executable named |
43 autodetected, e.g. when Mercurial is run as a Python module. | 43 'hg' (with com/exe/bat/cmd extension on Windows) is searched. |
44 | 44 |
45 HGEDITOR:: | 45 HGEDITOR:: |
46 This is the name of the editor to use when committing. Defaults to the | 46 This is the name of the editor to use when committing. Defaults to the |
47 value of EDITOR. | 47 value of EDITOR. |
48 | 48 |