##// END OF EJS Templates
context: clarify why we don't compare file contents when nodeid differs...
Martin von Zweigbergk -
r27748:81b391a4 default
parent child Browse files
Show More
@@ -140,15 +140,15 b' class basectx(object):'
140 140 added.append(fn)
141 141 elif node2 is None:
142 142 removed.append(fn)
143 elif node2 != _newnode:
144 # The file was not a new file in mf2, so an entry
145 # from diff is really a difference.
143 elif self.rev() is not None:
144 # When comparing files between two commits, we save time by
145 # not comparing the file contents when the nodeids differ.
146 # Note that this means we incorrectly report a reverted change
147 # to a file as a modification.
146 148 modified.append(fn)
147 149 elif flag1 != flag2:
148 150 modified.append(fn)
149 151 elif self[fn].cmp(other[fn]):
150 # node2 was newnode, but the working file doesn't
151 # match the one in mf1.
152 152 modified.append(fn)
153 153 else:
154 154 clean.append(fn)
General Comments 0
You need to be logged in to leave comments. Login now