# HG changeset patch # User Pierre-Yves David # Date 1684181383 -7200 # Node ID 1b776f25302f9952e87cadaf7caecbabe7be5954 # Parent 66c55696822288a64d5339441e6c142d725cdef9 store: use the boolean property in `store` diff -r 66c556968222 -r 1b776f25302f mercurial/store.py --- a/mercurial/store.py Mon May 15 22:09:15 2023 +0200 +++ b/mercurial/store.py Mon May 15 22:09:43 2023 +0200 @@ -41,9 +41,9 @@ if matcher is None: return True - if entry.revlog_type == FILEFLAGS_FILELOG: + if entry.is_filelog: return matcher(entry.target_id) - elif entry.revlog_type == FILEFLAGS_MANIFESTLOG: + elif entry.is_manifestlog: return matcher.visitdir(entry.target_id.rstrip(b'/')) raise error.ProgrammingError(b"cannot process entry %r" % entry)