Patchwork D266: localrepo: remove unused requirements attributes on localpeer (API)

login
register
mail settings
Submitter phabricator
Date Aug. 8, 2017, 3:24 a.m.
Message ID <differential-rev-PHID-DREV-6hvz2q3gtu6ffeqxdpbq-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/22738/
State Superseded
Headers show

Comments

phabricator - Aug. 8, 2017, 3:24 a.m.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The previous changeset removed the last consumer of requirements. I'm
  not sure when supportedformats became unused. But I couldn't find
  any obvious instances where it is being used. It likely stems from
  peers being derived from repository instances several years ago and
  is a holdover from that day.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -154,8 +154,6 @@ 
         self._repo = repo.filtered('served')
         self.ui = repo.ui
         self._caps = repo._restrictcapabilities(caps)
-        self.requirements = repo.requirements
-        self.supportedformats = repo.supportedformats
 
     def close(self):
         self._repo.close()