mercurial/wireproto.py
changeset 20910 acbfce12fafd
parent 20909 c8b9cbf55840
child 20911 1bb8ed6c000c
--- 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'),