Mercurial > public > mercurial-scm > hg
diff mercurial/statichttprepo.py @ 13440:286a3720d472 stable
statichttprepo: don't modify localrepo class variables
This happened to crash in subrepo setups when the base class variable was
modified twice.
Now we don't modify the class variable but an instance copy.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 18 Feb 2011 23:41:13 +0100 |
parents | 643b8212813e |
children | 931a72e00efa |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Fri Feb 18 03:35:01 2011 +0100 +++ b/mercurial/statichttprepo.py Fri Feb 18 23:41:13 2011 +0100 @@ -128,7 +128,7 @@ self._branchcachetip = None self.encodepats = None self.decodepats = None - self.capabilities.remove("pushkey") + self.capabilities = self.capabilities.difference(["pushkey"]) def url(self): return self._url