Mercurial > hg
changeset 20910:acbfce12fafd
wireproto: use decorator for the branches command
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 28 Mar 2014 14:37:02 -0700 |
parents | c8b9cbf55840 |
children | 1bb8ed6c000c |
files | mercurial/wireproto.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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'),