Show More
@@ -66,7 +66,7 b' class localpeer(peer.peerrepository):' | |||||
66 |
|
66 | |||
67 | def __init__(self, repo, caps=MODERNCAPS): |
|
67 | def __init__(self, repo, caps=MODERNCAPS): | |
68 | peer.peerrepository.__init__(self) |
|
68 | peer.peerrepository.__init__(self) | |
69 | self._repo = repo |
|
69 | self._repo = repo.filtered('unserved') | |
70 | self.ui = repo.ui |
|
70 | self.ui = repo.ui | |
71 | self._caps = repo._restrictcapabilities(caps) |
|
71 | self._caps = repo._restrictcapabilities(caps) | |
72 | self.requirements = repo.requirements |
|
72 | self.requirements = repo.requirements |
@@ -25,6 +25,9 b' class serverrepo(object):' | |||||
25 | def greet(self, name): |
|
25 | def greet(self, name): | |
26 | return "Hello, " + name |
|
26 | return "Hello, " + name | |
27 |
|
27 | |||
|
28 | def filtered(self, name): | |||
|
29 | return self | |||
|
30 | ||||
28 | def mangle(s): |
|
31 | def mangle(s): | |
29 | return ''.join(chr(ord(c) + 1) for c in s) |
|
32 | return ''.join(chr(ord(c) + 1) for c in s) | |
30 | def unmangle(s): |
|
33 | def unmangle(s): |
General Comments 0
You need to be logged in to leave comments.
Login now