Show More
@@ -556,6 +556,12 b' Supported arguments:' | |||
|
556 | 556 | tool. Mercurial will search for this key first under |
|
557 | 557 | ``HKEY_CURRENT_USER`` and then under ``HKEY_LOCAL_MACHINE``. |
|
558 | 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 | 565 | ``regname`` |
|
560 | 566 | Name of value to read from specified registry key. Defaults to the |
|
561 | 567 | unnamed (default) value. |
@@ -25,8 +25,10 b' def _toollist(ui, tool, part, default=[]' | |||
|
25 | 25 | def _findtool(ui, tool): |
|
26 | 26 | if tool in _internal: |
|
27 | 27 | return tool |
|
28 | k = _toolstr(ui, tool, "regkey") | |
|
29 | if k: | |
|
28 | for kn in ("regkey", "regkeyalt"): | |
|
29 | k = _toolstr(ui, tool, kn) | |
|
30 | if not k: | |
|
31 | continue | |
|
30 | 32 | p = util.lookup_reg(k, _toolstr(ui, tool, "regname")) |
|
31 | 33 | if p: |
|
32 | 34 | p = util.find_exe(p + _toolstr(ui, tool, "regappend")) |
General Comments 0
You need to be logged in to leave comments.
Login now