##// END OF EJS Templates
wireproto: enable optional args for known() for future extensibility...
Peter Arrenbrecht -
r14436:5adb5252 default
parent child Browse files
Show More
@@ -288,7 +288,7 b' def lookup(repo, proto, key):'
288 success = 0
288 success = 0
289 return "%s %s\n" % (success, r)
289 return "%s %s\n" % (success, r)
290
290
291 def known(repo, proto, nodes):
291 def known(repo, proto, nodes, others):
292 return ''.join(b and "1" or "0" for b in repo.known(decodelist(nodes)))
292 return ''.join(b and "1" or "0" for b in repo.known(decodelist(nodes)))
293
293
294 def pushkey(repo, proto, namespace, key, old, new):
294 def pushkey(repo, proto, namespace, key, old, new):
@@ -412,7 +412,7 b' commands = {'
412 'getbundle': (getbundle, '*'),
412 'getbundle': (getbundle, '*'),
413 'heads': (heads, ''),
413 'heads': (heads, ''),
414 'hello': (hello, ''),
414 'hello': (hello, ''),
415 'known': (known, 'nodes'),
415 'known': (known, 'nodes *'),
416 'listkeys': (listkeys, 'namespace'),
416 'listkeys': (listkeys, 'namespace'),
417 'lookup': (lookup, 'key'),
417 'lookup': (lookup, 'key'),
418 'pushkey': (pushkey, 'namespace key old new'),
418 'pushkey': (pushkey, 'namespace key old new'),
General Comments 0
You need to be logged in to leave comments. Login now