--- a/mercurial/wireproto.py Fri Mar 28 14:36:41 2014 -0700
+++ b/mercurial/wireproto.py Fri Mar 28 14:37:02 2014 -0700
@@ -531,6 +531,7 @@
heads.append('%s %s' % (branchname, branchnodes))
return '\n'.join(heads)
+@wireprotocommand('branches', 'nodes')
def branches(repo, proto, nodes):
nodes = decodelist(nodes)
r = []
@@ -784,7 +785,6 @@
os.unlink(tempname)
commands.update({
- 'branches': (branches, 'nodes'),
'capabilities': (capabilities, ''),
'changegroup': (changegroup, 'roots'),
'changegroupsubset': (changegroupsubset, 'bases heads'),