Mercurial > public > mercurial-scm > hg
changeset 52507:8820c991aee4
interfaces: drop `_ignorefiles()` from `dirstate` Protocol
I didn't look back at the state of things when this was introduced as a zope
interface, but the method is only called inside of `mercurial.dirstate.dirstate`
now.
In general, private methods shouldn't be in the Protocol class, but some of
these are called from outside `dirstate` by debug commands.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 11 Dec 2024 21:11:19 -0500 |
parents | 199b0e62b403 |
children | 2ac368d0a5b6 |
files | mercurial/interfaces/dirstate.py |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/interfaces/dirstate.py Sun Dec 15 18:52:05 2024 -0500 +++ b/mercurial/interfaces/dirstate.py Wed Dec 11 21:11:19 2024 -0500 @@ -110,9 +110,6 @@ def is_changing_files(self) -> bool: """True if file tracking changes in progress.""" - def _ignorefiles(self) -> List[bytes]: - """Return a list of files containing patterns to ignore.""" - def _ignorefileandline(self, f: bytes) -> IgnoreFileAndLineT: """Given a file `f`, return the ignore file and line that ignores it."""