changeset 42995:73288e7abe9b

flagprocessors: remove flagprocessorsmixin It became an empty shell. Differential Revision: https://phab.mercurial-scm.org/D6823
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 07 Sep 2019 00:34:20 +0200
parents 3674797ae8b9
children 4f2315cce1db
files hgext/remotefilelog/remotefilelog.py mercurial/revlog.py mercurial/revlogutils/flagutil.py tests/simplestorerepo.py
diffstat 4 files changed, 3 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/remotefilelog/remotefilelog.py	Sat Sep 07 00:26:15 2019 +0200
+++ b/hgext/remotefilelog/remotefilelog.py	Sat Sep 07 00:34:20 2019 +0200
@@ -47,7 +47,7 @@
             raise KeyError(node)
         return node
 
-class remotefilelog(flagutil.flagprocessorsmixin):
+class remotefilelog(object):
 
     _generaldelta = True
     _flagserrorclass = error.RevlogError
--- a/mercurial/revlog.py	Sat Sep 07 00:26:15 2019 +0200
+++ b/mercurial/revlog.py	Sat Sep 07 00:34:20 2019 +0200
@@ -261,7 +261,7 @@
             p = versionformat_pack(version) + p[4:]
         return p
 
-class revlog(flagutil.flagprocessorsmixin):
+class revlog(object):
     """
     the underlying revision storage object
 
--- a/mercurial/revlogutils/flagutil.py	Sat Sep 07 00:26:15 2019 +0200
+++ b/mercurial/revlogutils/flagutil.py	Sat Sep 07 00:34:20 2019 +0200
@@ -79,14 +79,6 @@
         raise error.Abort(msg)
     flagprocessors[flag] = processor
 
-class flagprocessorsmixin(object):
-    """basic mixin to support revlog flag processing
-
-    Make sure the `_flagprocessors` attribute is set at ``__init__`` time.
-
-    See the documentation of the ``_processflags`` method for details.
-    """
-
 def processflagswrite(revlog, text, flags, sidedata):
     """Inspect revision data flags and applies write transformations defined
     by registered flag processors.
--- a/tests/simplestorerepo.py	Sat Sep 07 00:26:15 2019 +0200
+++ b/tests/simplestorerepo.py	Sat Sep 07 00:34:20 2019 +0200
@@ -91,7 +91,7 @@
     node = attr.ib(default=None)
 
 @interfaceutil.implementer(repository.ifilestorage)
-class filestorage(flagutil.flagprocessorsmixin):
+class filestorage(object):
     """Implements storage for a tracked path.
 
     Data is stored in the VFS in a directory corresponding to the tracked