# HG changeset patch # User Gregory Szorc # Date 2018-09-24 17:08:58 # Node ID 4b816a83e17e37e93f03c937919e4e5a9d1581df # Parent e23c03dc5cf9385d33df7e98818ab53577d550b1 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 diff --git a/mercurial/filelog.py b/mercurial/filelog.py --- a/mercurial/filelog.py +++ b/mercurial/filelog.py @@ -25,8 +25,6 @@ class filelog(object): # 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) diff --git a/mercurial/repository.py b/mercurial/repository.py --- a/mercurial/repository.py +++ b/mercurial/repository.py @@ -741,13 +741,6 @@ class ifilemutation(interfaceutil.Interf 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. diff --git a/tests/simplestorerepo.py b/tests/simplestorerepo.py --- a/tests/simplestorerepo.py +++ b/tests/simplestorerepo.py @@ -106,9 +106,6 @@ class filestorage(object): self._index = [] self._refreshindex() - # This is used by changegroup code :/ - self._generaldelta = True - def _refreshindex(self): self._indexbynode.clear() self._indexbyrev.clear()