Mercurial > hg
comparison mercurial/statichttprepo.py @ 20962:af4158b8876b
statichttp: respect localrepo _restrictcapabilities
The static http repository was doing his own filtering of capability ignoring
the filtering done in the local repo main class. This led to static http using
the current draft of bundle2. We now apply both.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 07 Apr 2014 11:45:50 -0700 |
parents | 6bb9de1e4d16 |
children | 72319005f5fb |
comparison
equal
deleted
inserted
replaced
20961:6c40ea34ecc1 | 20962:af4158b8876b |
---|---|
141 self._branchcaches = {} | 141 self._branchcaches = {} |
142 self.encodepats = None | 142 self.encodepats = None |
143 self.decodepats = None | 143 self.decodepats = None |
144 | 144 |
145 def _restrictcapabilities(self, caps): | 145 def _restrictcapabilities(self, caps): |
146 caps = super(statichttprepository, self)._restrictcapabilities(caps) | |
146 return caps.difference(["pushkey"]) | 147 return caps.difference(["pushkey"]) |
147 | 148 |
148 def url(self): | 149 def url(self): |
149 return self._url | 150 return self._url |
150 | 151 |