Mercurial > hg
changeset 24978:f52560c64953
changegroup: drop _changelog and _manifest properties
We already have a _repo property on the packer, and we only access the
changelog and manifest revlog in one place, so it's just as easy to
get them from self._repo.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 30 Apr 2015 16:45:03 -0700 |
parents | 4289383cb9d2 |
children | f44db7343be9 |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Wed Apr 29 13:25:07 2015 -0700 +++ b/mercurial/changegroup.py Thu Apr 30 16:45:03 2015 -0700 @@ -283,8 +283,6 @@ if bundlecaps is None: bundlecaps = set() self._bundlecaps = bundlecaps - self._changelog = repo.changelog - self._manifest = repo.manifest reorder = repo.ui.config('bundle', 'reorder', 'auto') if reorder == 'auto': reorder = None @@ -359,8 +357,8 @@ def generate(self, commonrevs, clnodes, fastpathlinkrev, source): '''yield a sequence of changegroup chunks (strings)''' repo = self._repo - cl = self._changelog - ml = self._manifest + cl = repo.changelog + ml = repo.manifest clrevorder = {} mfs = {} # needed manifests