Mercurial > public > mercurial-scm > hg
diff hgext/sqlitestore.py @ 52490:ef119f914fc1
localrepo: subclass the new `ilocalrepositoryfilestorage` Protocol class
This is the same transformation as 3a90a6fd710d did for dirstate, but the
CamelCase naming was already cleaned up here. See 4ef6dbc27a99 for the benefits
of explicit subclassing.
Since there's only one method in this Protocol class and it needs to be
abstract because of the direct subclassing (see cdd4bc69bfc1), do that here.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 23 Oct 2024 15:13:40 -0400 |
parents | ba8f03ad8906 |
children | 5cc8deb96b48 |
line wrap: on
line diff
--- a/hgext/sqlitestore.py Tue Oct 22 23:36:48 2024 -0400 +++ b/hgext/sqlitestore.py Wed Oct 23 15:13:40 2024 -0400 @@ -86,7 +86,6 @@ ) from mercurial.interfaces import ( repository, - util as interfaceutil, ) from mercurial.utils import ( hashutil, @@ -1282,8 +1281,7 @@ return requirements -@interfaceutil.implementer(repository.ilocalrepositoryfilestorage) -class sqlitefilestorage: +class sqlitefilestorage(repository.ilocalrepositoryfilestorage): """Repository file storage backed by SQLite.""" def file(self, path):