diff mercurial/merge.py @ 6747:f6c00b17387c

use repo[changeid] to get a changectx
author Matt Mackall <mpm@selenic.com>
date Thu, 26 Jun 2008 14:35:46 -0500
parents 1dca460e7d1e
children f67d1468ac50
line wrap: on
line diff
--- a/mercurial/merge.py	Thu Jun 26 13:58:24 2008 -0500
+++ b/mercurial/merge.py	Thu Jun 26 14:35:46 2008 -0500
@@ -409,7 +409,7 @@
 
     wlock = repo.wlock()
     try:
-        wc = repo.changectx(None)
+        wc = repo[None]
         if node is None:
             # tip of current branch
             try:
@@ -421,7 +421,7 @@
                     raise util.Abort(_("branch %s not found") % wc.branch())
         overwrite = force and not branchmerge
         pl = wc.parents()
-        p1, p2 = pl[0], repo.changectx(node)
+        p1, p2 = pl[0], repo[node]
         pa = p1.ancestor(p2)
         fp1, fp2, xp1, xp2 = p1.node(), p2.node(), str(p1), str(p2)
         fastforward = False