extdiff: expand tildes and variables in paths to user-supplied diff programs
authorJordi Gutiérrez Hermoso <jordigh@octave.org>
Fri, 27 Feb 2015 17:35:07 -0500
changeset 24193 fa4642439aa0
parent 24192 390410a6545d
child 24194 00809c43d72c
extdiff: expand tildes and variables in paths to user-supplied diff programs
hgext/extdiff.py
--- a/hgext/extdiff.py	Sun Feb 22 15:40:36 2015 +0100
+++ b/hgext/extdiff.py	Fri Feb 27 17:35:07 2015 -0500
@@ -276,6 +276,7 @@
 
 def uisetup(ui):
     for cmd, path in ui.configitems('extdiff'):
+        path = util.expandpath(path)
         if cmd.startswith('cmd.'):
             cmd = cmd[4:]
             if not path: