changeset 48090:5b6ffd6be480

dirstate-item: use maybe_clean instead of `state` in the eol extension Differential Revision: https://phab.mercurial-scm.org/D11527
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 29 Sep 2021 14:55:29 +0200
parents c87844960a35
children bac753df8021
files hgext/eol.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):