##// END OF EJS Templates
context: check for differing flags a little earlier...
Martin von Zweigbergk -
r27749:215b4744 default
parent child Browse files
Show More
@@ -140,14 +140,14 b' class basectx(object):'
140 140 added.append(fn)
141 141 elif node2 is None:
142 142 removed.append(fn)
143 elif flag1 != flag2:
144 modified.append(fn)
143 145 elif self.rev() is not None:
144 146 # When comparing files between two commits, we save time by
145 147 # not comparing the file contents when the nodeids differ.
146 148 # Note that this means we incorrectly report a reverted change
147 149 # to a file as a modification.
148 150 modified.append(fn)
149 elif flag1 != flag2:
150 modified.append(fn)
151 151 elif self[fn].cmp(other[fn]):
152 152 modified.append(fn)
153 153 else:
@@ -388,6 +388,17 b' reverted file with changed flag should a'
388 388
389 389 $ hg revert -r 0 .
390 390 reverting file
391
392 reverted and committed file with changed flag should appear modified
393
394 $ hg co -C .
395 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
396 $ chmod +x file
397 $ hg ci -m 'change flag'
398 $ hg status -A --rev 1 --rev 2
399 M file
400 $ hg diff -r 1 -r 2
401
391 402 #endif
392 403
393 404 hg status of binary file starting with '\1\n', a separator for metadata:
General Comments 0
You need to be logged in to leave comments. Login now