Show More
@@ -62,13 +62,13 b' def unfilteredmethod(orig):' | |||||
62 | return orig(repo.unfiltered(), *args, **kwargs) |
|
62 | return orig(repo.unfiltered(), *args, **kwargs) | |
63 | return wrapper |
|
63 | return wrapper | |
64 |
|
64 | |||
65 |
|
|
65 | moderncaps = set(('lookup', 'branchmap', 'pushkey', 'known', 'getbundle')) | |
66 |
|
|
66 | legacycaps = moderncaps.union(set(['changegroupsubset'])) | |
67 |
|
67 | |||
68 | class localpeer(peer.peerrepository): |
|
68 | class localpeer(peer.peerrepository): | |
69 | '''peer for a local repo; reflects only the most recent API''' |
|
69 | '''peer for a local repo; reflects only the most recent API''' | |
70 |
|
70 | |||
71 |
def __init__(self, repo, caps= |
|
71 | def __init__(self, repo, caps=moderncaps): | |
72 | peer.peerrepository.__init__(self) |
|
72 | peer.peerrepository.__init__(self) | |
73 | self._repo = repo.filtered('served') |
|
73 | self._repo = repo.filtered('served') | |
74 | self.ui = repo.ui |
|
74 | self.ui = repo.ui | |
@@ -131,7 +131,7 b' class locallegacypeer(localpeer):' | |||||
131 | restricted capabilities''' |
|
131 | restricted capabilities''' | |
132 |
|
132 | |||
133 | def __init__(self, repo): |
|
133 | def __init__(self, repo): | |
134 |
localpeer.__init__(self, repo, caps= |
|
134 | localpeer.__init__(self, repo, caps=legacycaps) | |
135 |
|
135 | |||
136 | def branches(self, nodes): |
|
136 | def branches(self, nodes): | |
137 | return self._repo.branches(nodes) |
|
137 | return self._repo.branches(nodes) |
General Comments 0
You need to be logged in to leave comments.
Login now