comparison hgext/eol.py @ 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 936f26b9f1cc
children 6000f5b25c9b
comparison
equal deleted inserted replaced
48089:c87844960a35 48090:5b6ffd6be480
421 421
422 wlock = None 422 wlock = None
423 try: 423 try:
424 wlock = self.wlock() 424 wlock = self.wlock()
425 for f in self.dirstate: 425 for f in self.dirstate:
426 if self.dirstate[f] != b'n': 426 if not self.dirstate.get_entry(f).maybe_clean:
427 continue 427 continue
428 if oldeol is not None: 428 if oldeol is not None:
429 if not oldeol.match(f) and not neweol.match(f): 429 if not oldeol.match(f) and not neweol.match(f):
430 continue 430 continue
431 oldkey = None 431 oldkey = None