Patchwork D11875: fsmonitor: fix criteria for nonnormalset computation

login
register
mail settings
Submitter phabricator
Date Dec. 7, 2021, 2:07 p.m.
Message ID <differential-rev-PHID-DREV-5q3h2ht7d2jcobnwlr6p-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50201/
State Superseded
Headers show

Comments

phabricator - Dec. 7, 2021, 2:07 p.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  ... oops.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

AFFECTED FILES
  hgext/fsmonitor/__init__.py

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/hgext/fsmonitor/__init__.py b/hgext/fsmonitor/__init__.py
--- a/hgext/fsmonitor/__init__.py
+++ b/hgext/fsmonitor/__init__.py
@@ -336,7 +336,7 @@ 
     nonnormalset = {
         f
         for f, e in self._map.items()
-        if e.v1_state() != "n" or e.v1_mtime() == -1
+        if e.v1_state() != b"n" or e.v1_mtime() == -1
     }
 
     copymap = self._map.copymap