mercurial/merge.py
changeset 3578 3b4e00cba57a
parent 3442 798bcde0c9c2
child 3580 41989e55fa37
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -34,7 +34,7 @@ def filemerge(repo, fw, fo, wctx, mctx):
 
     fca = fcm.ancestor(fco)
     if not fca:
-        fca = repo.filectx(fw, fileid=-1)
+        fca = repo.filectx(fw, fileid=nullrev)
     a = repo.wjoin(fw)
     b = temp("base", fca)
     c = temp("other", fco)