[Updated] D11707: fsmonitor: fix traceback after removal of nonnormalset (issue6600)

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Thu Nov 4 20:46:09 UTC 2021


Closed by commit rHG1421c75b20de: fsmonitor: fix traceback after removal of nonnormalset (issue6600) (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11707?vs=30927&id=31029

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11707/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11707

AFFECTED FILES
  hgext/fsmonitor/__init__.py

CHANGE DETAILS

diff --git a/hgext/fsmonitor/__init__.py b/hgext/fsmonitor/__init__.py
--- a/hgext/fsmonitor/__init__.py
+++ b/hgext/fsmonitor/__init__.py
@@ -333,7 +333,11 @@
         # for better performance, directly access the inner dirstate map if the
         # standard dirstate implementation is in use.
         dmap = dmap._map
-    nonnormalset = self._map.nonnormalset
+    nonnormalset = {
+        f
+        for f, e in self._map.items()
+        if e.v1_state() != "n" or e.v1_mtime() == -1
+    }
 
     copymap = self._map.copymap
     getkind = stat.S_IFMT



To: Alphare, #hg-reviewers, marmoute
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20211104/315e41bf/attachment.html>


More information about the Mercurial-patches mailing list