dirstate-item: use maybe_clean instead of `state` in the eol extension
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 29 Sep 2021 14:55:29 +0200
changeset 48102 5b6ffd6be480
parent 48101 c87844960a35
child 48103 bac753df8021
dirstate-item: use maybe_clean instead of `state` in the eol extension Differential Revision: https://phab.mercurial-scm.org/D11527
hgext/eol.py
--- a/hgext/eol.py	Thu Sep 30 12:00:15 2021 +0200
+++ b/hgext/eol.py	Wed Sep 29 14:55:29 2021 +0200
@@ -423,7 +423,7 @@
                 try:
                     wlock = self.wlock()
                     for f in self.dirstate:
-                        if self.dirstate[f] != b'n':
+                        if not self.dirstate.get_entry(f).maybe_clean:
                             continue
                         if oldeol is not None:
                             if not oldeol.match(f) and not neweol.match(f):