[PATCH] merge: supply base node to merge tools in the environment

Sune Foldager cryo at cyanite.org
Wed Nov 4 08:18:32 CST 2009


# HG changeset patch
# User Sune Foldager <cryo at cyanite.org>
# Date 1257344299 -3600
# Node ID 5858117a007732940a71ac2b2e035d086d8320c3
# Parent  a9424b6a1a6da70f28b1a61221d8fdc9e044f6c8
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.

diff --git a/mercurial/filemerge.py b/mercurial/filemerge.py
--- a/mercurial/filemerge.py
+++ b/mercurial/filemerge.py
@@ -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())


More information about the Mercurial-devel mailing list