changeset 23148:b405dd6c90bf

filemerge: split the logic for finding an external tool to its own function This will be used by extdiff in an subsequent patch.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 02 Nov 2014 14:58:50 -0500
parents 9174863c58e4
children dc80a0ad7bf5
files mercurial/filemerge.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/filemerge.py	Sun Nov 02 13:18:08 2014 -0800
+++ b/mercurial/filemerge.py	Sun Nov 02 14:58:50 2014 -0500
@@ -37,6 +37,9 @@
 def _findtool(ui, tool):
     if tool in internals:
         return tool
+    return findexternaltool(ui, tool)
+
+def findexternaltool(ui, tool):
     for kn in ("regkey", "regkeyalt"):
         k = _toolstr(ui, tool, kn)
         if not k: