Show More
@@ -556,6 +556,12 b' Supported arguments:' | |||||
556 | tool. Mercurial will search for this key first under |
|
556 | tool. Mercurial will search for this key first under | |
557 | ``HKEY_CURRENT_USER`` and then under ``HKEY_LOCAL_MACHINE``. |
|
557 | ``HKEY_CURRENT_USER`` and then under ``HKEY_LOCAL_MACHINE``. | |
558 | Default: None |
|
558 | Default: None | |
|
559 | ``regkeyalt`` | |||
|
560 | An alternate Windows registry key to try if the first key is not | |||
|
561 | found. The alternate key uses the same ``regname`` and ``regappend`` | |||
|
562 | semantics of the primary key. The most common use for this key | |||
|
563 | is to search for 32bit applications on 64bit operating systems. | |||
|
564 | Default: None | |||
559 | ``regname`` |
|
565 | ``regname`` | |
560 | Name of value to read from specified registry key. Defaults to the |
|
566 | Name of value to read from specified registry key. Defaults to the | |
561 | unnamed (default) value. |
|
567 | unnamed (default) value. |
@@ -25,8 +25,10 b' def _toollist(ui, tool, part, default=[]' | |||||
25 | def _findtool(ui, tool): |
|
25 | def _findtool(ui, tool): | |
26 | if tool in _internal: |
|
26 | if tool in _internal: | |
27 | return tool |
|
27 | return tool | |
28 | k = _toolstr(ui, tool, "regkey") |
|
28 | for kn in ("regkey", "regkeyalt"): | |
29 | if k: |
|
29 | k = _toolstr(ui, tool, kn) | |
|
30 | if not k: | |||
|
31 | continue | |||
30 | p = util.lookup_reg(k, _toolstr(ui, tool, "regname")) |
|
32 | p = util.lookup_reg(k, _toolstr(ui, tool, "regname")) | |
31 | if p: |
|
33 | if p: | |
32 | p = util.find_exe(p + _toolstr(ui, tool, "regappend")) |
|
34 | p = util.find_exe(p + _toolstr(ui, tool, "regappend")) |
General Comments 0
You need to be logged in to leave comments.
Login now