mercurial/context.py
changeset 37448 d7114f883505
parent 37447 067e8d1178a2
child 37504 901e749ca0e1
--- a/mercurial/context.py	Sun Mar 25 18:27:43 2018 +0900
+++ b/mercurial/context.py	Sun Mar 25 18:31:22 2018 +0900
@@ -22,8 +22,8 @@
     nullid,
     nullrev,
     short,
+    wdirfilenodeids,
     wdirid,
-    wdirnodes,
     wdirrev,
 )
 from . import (
@@ -138,7 +138,7 @@
                 removed.append(fn)
             elif flag1 != flag2:
                 modified.append(fn)
-            elif node2 not in wdirnodes:
+            elif node2 not in wdirfilenodeids:
                 # When comparing files between two commits, we save time by
                 # not comparing the file contents when the nodeids differ.
                 # Note that this means we incorrectly report a reverted change