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
--- 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()