Patchwork D11527: dirstate-item: use maybe_clean instead of `state` in the eol extension

login
register
mail settings
Submitter phabricator
Date Oct. 1, 2021, 9:38 a.m.
Message ID <differential-rev-PHID-DREV-dxtpiv3ubywxvdg6egrk-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49848/
State Superseded
Headers show

Comments

phabricator - Oct. 1, 2021, 9:38 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  hgext/eol.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/eol.py b/hgext/eol.py
--- a/hgext/eol.py
+++ b/hgext/eol.py
@@ -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):