merge: supply base node to merge tools in the environment
authorSune Foldager <cryo@cyanite.org>
Wed, 04 Nov 2009 15:18:19 +0100
changeset 9709 5858117a0077
parent 9708 a9424b6a1a6d
child 9710 1765599f4899
merge: supply base node to merge tools in the environment Merge tools will be able to exploit this to correctly merge backouts. This won't work fully, though, until issue 1327 is solved, since the node information is not necessarily correct.
mercurial/filemerge.py
--- a/mercurial/filemerge.py	Wed Nov 04 09:34:04 2009 +0100
+++ b/mercurial/filemerge.py	Wed Nov 04 15:18:19 2009 +0100
@@ -186,6 +186,7 @@
     env = dict(HG_FILE=fd,
                HG_MY_NODE=short(mynode),
                HG_OTHER_NODE=str(fco.changectx()),
+               HG_BASE_NODE=str(fca.changectx()),
                HG_MY_ISLINK='l' in fcd.flags(),
                HG_OTHER_ISLINK='l' in fco.flags(),
                HG_BASE_ISLINK='l' in fca.flags())