localrepo: remove unused requirements attributes on localpeer (API)
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 07 Aug 2017 20:17:02 -0700
changeset 33703 da3087b8f4a2
parent 33702 033484935391
child 33704 c0b317cfecc8
localrepo: remove unused requirements attributes on localpeer (API) 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. Differential Revision: https://phab.mercurial-scm.org/D266
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Sat Aug 05 15:15:20 2017 -0700
+++ b/mercurial/localrepo.py	Mon Aug 07 20:17:02 2017 -0700
@@ -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()