mercurial/dirstate.py
changeset 38997 0d032756e9bf
parent 38994 a3cabe9415e1
child 39288 27946fca8a05
--- a/mercurial/dirstate.py	Wed Aug 08 17:03:05 2018 -0700
+++ b/mercurial/dirstate.py	Wed Aug 08 17:07:27 2018 -0700
@@ -912,6 +912,11 @@
                         continue
                     raise
                 for f, kind, st in entries:
+                    # If we needed to inspect any files, visitentries would have
+                    # been 'this' or 'all', and we would have set it to None
+                    # above. If we have visitentries populated here, we don't
+                    # care about any files in this directory, so no need to
+                    # check the type of `f`.
                     if visitentries and f not in visitentries:
                         continue
                     if normalizefile: