equal
deleted
inserted
replaced
35 return decorator |
35 return decorator |
36 |
36 |
37 def _findtool(ui, tool): |
37 def _findtool(ui, tool): |
38 if tool in internals: |
38 if tool in internals: |
39 return tool |
39 return tool |
|
40 return findexternaltool(ui, tool) |
|
41 |
|
42 def findexternaltool(ui, tool): |
40 for kn in ("regkey", "regkeyalt"): |
43 for kn in ("regkey", "regkeyalt"): |
41 k = _toolstr(ui, tool, kn) |
44 k = _toolstr(ui, tool, kn) |
42 if not k: |
45 if not k: |
43 continue |
46 continue |
44 p = util.lookupreg(k, _toolstr(ui, tool, "regname")) |
47 p = util.lookupreg(k, _toolstr(ui, tool, "regname")) |