##// END OF EJS Templates
wireproto: use decorator for the branchmap command
Pierre-Yves David -
r20909:c8b9cbf5 default
parent child Browse files
Show More
@@ -521,6 +521,7 b' def between(repo, proto, pairs):'
521 r.append(encodelist(b) + "\n")
521 r.append(encodelist(b) + "\n")
522 return "".join(r)
522 return "".join(r)
523
523
524 @wireprotocommand('branchmap')
524 def branchmap(repo, proto):
525 def branchmap(repo, proto):
525 branchmap = repo.branchmap()
526 branchmap = repo.branchmap()
526 heads = []
527 heads = []
@@ -783,7 +784,6 b' def unbundle(repo, proto, heads):'
783 os.unlink(tempname)
784 os.unlink(tempname)
784
785
785 commands.update({
786 commands.update({
786 'branchmap': (branchmap, ''),
787 'branches': (branches, 'nodes'),
787 'branches': (branches, 'nodes'),
788 'capabilities': (capabilities, ''),
788 'capabilities': (capabilities, ''),
789 'changegroup': (changegroup, 'roots'),
789 'changegroup': (changegroup, 'roots'),
General Comments 0
You need to be logged in to leave comments. Login now