[PATCH] Retrieve Beyond Compare's path from registry

Pascal Quantin pascal.quantin at gmail.com
Fri Jan 23 16:41:08 CST 2009


# HG changeset patch
# User Pascal Quantin <pascal.quantin at gmail.com>
# Date 1232750368 -3600
# Node ID f8742c470653bf4899773695499e2f057cfea105
# Parent  10cc6bc906f940717a98aff49290c0b4e82856f5
Retrieve Beyond Compare's path from registry

Switch from a hardcoded path to registry key to find Beyond Compare's executable. Calling BCompare.exe works fine with version 3.0.14.

diff --git a/contrib/mergetools.hgrc b/contrib/mergetools.hgrc
--- a/contrib/mergetools.hgrc
+++ b/contrib/mergetools.hgrc
@@ -51,8 +51,9 @@
 filemerge.args=-left $other -right $local -ancestor $base -merge $output
 filemerge.gui=True
 
-beyondcompare3.executable=C:\Program Files\Beyond Compare 3\BComp.exe
 beyondcompare3.args=$local $other $base $output /ro /lefttitle=local /centerfile=base /righttitle=other /automerge /reviewconflicts
+beyondcompare3.regkey=Software\Scooter Software\Beyond Compare 3
+beyondcompare3.regname=ExePath
 beyondcompare3.gui=True
 
 winmerge.args=/e /u /dl local /dr other /wr $local $other $output


More information about the Mercurial-devel mailing list