Mercurial > evolve
comparison hgext3rd/topic/__init__.py @ 2007:aa3b6cfdf493
flake8: fix E301 style
author | Sean Farley <sean@farley.io> |
---|---|
date | Tue, 30 Aug 2016 15:22:24 -0700 |
parents | c413e7c96265 |
children | e3ddd696394f |
comparison
equal
deleted
inserted
replaced
2006:c817efec4afc | 2007:aa3b6cfdf493 |
---|---|
116 | 116 |
117 def reposetup(ui, repo): | 117 def reposetup(ui, repo): |
118 orig = repo.__class__ | 118 orig = repo.__class__ |
119 if not isinstance(repo, localrepo.localrepository): | 119 if not isinstance(repo, localrepo.localrepository): |
120 return # this can be a peer in the ssh case (puzzling) | 120 return # this can be a peer in the ssh case (puzzling) |
121 | |
121 class topicrepo(repo.__class__): | 122 class topicrepo(repo.__class__): |
122 | 123 |
123 def _restrictcapabilities(self, caps): | 124 def _restrictcapabilities(self, caps): |
124 caps = super(topicrepo, self)._restrictcapabilities(caps) | 125 caps = super(topicrepo, self)._restrictcapabilities(caps) |
125 caps.add('topics') | 126 caps.add('topics') |