Comments
Patch
@@ -88,8 +88,13 @@
cs = cStringIO.StringIO()
write = cs.write
write("".join(pl))
- if True:
+ # First pass: non normal files, second pass: normal files to improve status
+ # performance as status generally only need the non normal files
+ for _pass in [0, 1]:
for f, e in dmap.iteritems():
+ normal = e[0] == 'n' and e[3] != -1
+ if normal != _pass:
+ continue
if e[0] == 'n' and e[3] == now:
# The file was last modified "simultaneously" with the current
# write to dirstate (i.e. within the same second for file-