Use of opendiff as merge program on MacOS X
Christian Ebert
blacktrash at gmx.net
Thu Jan 5 03:02:51 UTC 2006
Hello,
If one has the developer tools installed on MacOS X there's
another alternative for the merge program.
Invocation could be done somehow like in the attached patch for
hgmerge.
c
--
_B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>
-------------- next part --------------
--- src/mercurial-0.7/hgmerge Fri Sep 16 23:02:33 2005
+++ bin/hgmerge Thu Jan 5 03:54:45 2006
@@ -27,6 +27,16 @@
cp "$LOCAL.orig" "$LOCAL"
fi
+# on MacOS X try opendiff
+# (uses FileMerge.app, shipped with Apple's developer tools)
+if type opendiff > /dev/null 2>&1; then
+ opendiff "$LOCAL.orig" "$OTHER" -ancestor "$BASE" -merge "$LOCAL" || exit 1
+ # prevent $OTHER from being removed too early
+ # can surely be done in a more elegant way
+ sleep 1
+ exit 0
+fi
+
if [ -n "$DISPLAY" ]; then
# try using kdiff3, which is fairly nice
if type kdiff3 > /dev/null 2>&1; then
More information about the Mercurial
mailing list