Mercurial > hg
comparison hgext/fsmonitor/__init__.py @ 48306:1421c75b20de
fsmonitor: fix traceback after removal of nonnormalset (issue6600)
This basically does the same thing it used to do, but in the only place it's
needed.
Differential Revision: https://phab.mercurial-scm.org/D11707
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Wed, 20 Oct 2021 10:25:51 +0200 |
parents | 6fb282ce9113 |
children | 602120a96072 |
comparison
equal
deleted
inserted
replaced
48305:6fb282ce9113 | 48306:1421c75b20de |
---|---|
331 dmap = self._map | 331 dmap = self._map |
332 if util.safehasattr(dmap, b'_map'): | 332 if util.safehasattr(dmap, b'_map'): |
333 # for better performance, directly access the inner dirstate map if the | 333 # for better performance, directly access the inner dirstate map if the |
334 # standard dirstate implementation is in use. | 334 # standard dirstate implementation is in use. |
335 dmap = dmap._map | 335 dmap = dmap._map |
336 nonnormalset = self._map.nonnormalset | 336 nonnormalset = { |
337 f | |
338 for f, e in self._map.items() | |
339 if e.v1_state() != "n" or e.v1_mtime() == -1 | |
340 } | |
337 | 341 |
338 copymap = self._map.copymap | 342 copymap = self._map.copymap |
339 getkind = stat.S_IFMT | 343 getkind = stat.S_IFMT |
340 dirkind = stat.S_IFDIR | 344 dirkind = stat.S_IFDIR |
341 regkind = stat.S_IFREG | 345 regkind = stat.S_IFREG |