Patchwork D10023: changegroup: use the local variable instead of reaching through self

login
register
mail settings
Submitter phabricator
Date Feb. 19, 2021, 11:15 a.m.
Message ID <differential-rev-PHID-DREV-jmjgtdal3nauasmlaiie-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48339/
State Superseded
Headers show

Comments

phabricator - Feb. 19, 2021, 11:15 a.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Gratuitous cleanup while I was here.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10023

AFFECTED FILES
  mercurial/changegroup.py

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -1009,7 +1009,7 @@ 
         mfdicts = None
         if self._ellipses and self._isshallow:
             mfdicts = [
-                (self._repo.manifestlog[n].read(), lr)
+                (repo.manifestlog[n].read(), lr)
                 for (n, lr) in pycompat.iteritems(manifests)
             ]