changeset 39872:4b816a83e17e

filelog: drop _generaldelta attribute (API) With changegroup moving to emitrevisions(), this revlog-specific attribute is no longer used and can be deleted. Good riddance. Differential Revision: https://phab.mercurial-scm.org/D4727
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 24 Sep 2018 10:08:58 -0700
parents e23c03dc5cf9
children b06303a208be
files mercurial/filelog.py mercurial/repository.py tests/simplestorerepo.py
diffstat 3 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/filelog.py	Mon Sep 24 09:59:19 2018 -0700
+++ b/mercurial/filelog.py	Mon Sep 24 10:08:58 2018 -0700
@@ -25,8 +25,6 @@
         # Full name of the user visible file, relative to the repository root.
         # Used by LFS.
         self._revlog.filename = path
-        # Used by changegroup generation.
-        self._generaldelta = self._revlog._generaldelta
 
     def __len__(self):
         return len(self._revlog)
--- a/mercurial/repository.py	Mon Sep 24 09:59:19 2018 -0700
+++ b/mercurial/repository.py	Mon Sep 24 10:08:58 2018 -0700
@@ -741,13 +741,6 @@
 class ifilestorage(ifileindex, ifiledata, ifilemutation):
     """Complete storage interface for a single tracked file."""
 
-    _generaldelta = interfaceutil.Attribute(
-        """Whether deltas can be against any parent revision.
-
-        TODO this is used by changegroup code and it could probably be
-        folded into another API.
-        """)
-
     def files():
         """Obtain paths that are backing storage for this file.
 
--- a/tests/simplestorerepo.py	Mon Sep 24 09:59:19 2018 -0700
+++ b/tests/simplestorerepo.py	Mon Sep 24 10:08:58 2018 -0700
@@ -106,9 +106,6 @@
         self._index = []
         self._refreshindex()
 
-        # This is used by changegroup code :/
-        self._generaldelta = True
-
     def _refreshindex(self):
         self._indexbynode.clear()
         self._indexbyrev.clear()