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