mercurial/merge.py
changeset 4182 ba51a8225a60
parent 4116 bb70d5fa02ae
child 4209 dbc3846c09a1
--- a/mercurial/merge.py	Fri Mar 09 20:08:13 2007 +0100
+++ b/mercurial/merge.py	Sat Mar 10 17:45:32 2007 -0800
@@ -444,15 +444,15 @@
     wlock = working dir lock, if already held
     """
 
-    if node is None:
-        node = "tip"
-
     if not wlock:
         wlock = repo.wlock()
 
+    wc = repo.workingctx()
+    if node is None:
+        # tip of current branch
+        node = repo.branchtags()[wc.branch()]
     overwrite = force and not branchmerge
     forcemerge = force and branchmerge
-    wc = repo.workingctx()
     pl = wc.parents()
     p1, p2 = pl[0], repo.changectx(node)
     pa = p1.ancestor(p2)