Mercurial > hg
comparison mercurial/statichttprepo.py @ 47225:d00177d08139
statichttp: add the missing `features` attribute
This make statichttp closer to the interface it is "supposed" to follow.
Differential Revision: https://phab.mercurial-scm.org/D10616
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:29:41 +0200 |
parents | ffd3e823a7e5 |
children | 4a9570e389b2 |
comparison
equal
deleted
inserted
replaced
47224:8505d23928b1 | 47225:d00177d08139 |
---|---|
175 | 175 |
176 self.names = namespaces.namespaces() | 176 self.names = namespaces.namespaces() |
177 self.filtername = None | 177 self.filtername = None |
178 self._extrafilterid = None | 178 self._extrafilterid = None |
179 self._wanted_sidedata = set() | 179 self._wanted_sidedata = set() |
180 self.features = set() | |
180 | 181 |
181 try: | 182 try: |
182 requirements = set(self.vfs.read(b'requires').splitlines()) | 183 requirements = set(self.vfs.read(b'requires').splitlines()) |
183 except IOError as inst: | 184 except IOError as inst: |
184 if inst.errno != errno.ENOENT: | 185 if inst.errno != errno.ENOENT: |