mercurial/context.py
changeset 39713 a5dafefc4a53
parent 39712 15e86ecf6b26
child 39906 2327abace563
--- a/mercurial/context.py	Tue May 22 12:35:38 2018 +0200
+++ b/mercurial/context.py	Tue May 22 16:16:11 2018 +0200
@@ -36,7 +36,6 @@
     phases,
     pycompat,
     repoview,
-    revlog,
     scmutil,
     sparse,
     subrepo,
@@ -2287,17 +2286,10 @@
         man = pctx.manifest().copy()
 
         for f in self._status.modified:
-            p1node = nullid
-            p2node = nullid
-            p = pctx[f].parents() # if file isn't in pctx, check p2?
-            if len(p) > 0:
-                p1node = p[0].filenode()
-                if len(p) > 1:
-                    p2node = p[1].filenode()
-            man[f] = revlog.hash(self[f].data(), p1node, p2node)
+            man[f] = modifiednodeid
 
         for f in self._status.added:
-            man[f] = revlog.hash(self[f].data(), nullid, nullid)
+            man[f] = addednodeid
 
         for f in self._status.removed:
             if f in man: