dirstate: clarify comment about leaving normal files undef if changed 'now'
authorMads Kiilerich <madski@unity3d.com>
Wed, 14 Jan 2015 01:15:26 +0100
changeset 24181 5245caa0dcde
parent 24180 d8e0c591781c
child 24182 00ef3edcf1d5
dirstate: clarify comment about leaving normal files undef if changed 'now' Clarify that they only are saved as undef if they were marked as normal and changed in the same second.
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Sun Jan 18 02:38:57 2015 +0100
+++ b/mercurial/dirstate.py	Wed Jan 14 01:15:26 2015 +0100
@@ -882,9 +882,9 @@
                 elif time != mtime and time != mtime & _rangemask:
                     ladd(fn)
                 elif mtime == lastnormaltime:
-                    # fn may have been changed in the same timeslot without
-                    # changing its size. This can happen if we quickly do
-                    # multiple commits in a single transaction.
+                    # fn may have just been marked as normal and it may have
+                    # changed in the same second without changing its size.
+                    # This can happen if we quickly do multiple commits.
                     # Force lookup, so we don't miss such a racy file change.
                     ladd(fn)
                 elif listclean: