Mercurial > hg
changeset 20909:c8b9cbf55840
wireproto: use decorator for the branchmap command
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 28 Mar 2014 14:36:41 -0700 |
parents | ae4bf69c8068 |
children | acbfce12fafd |
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:05 2014 -0700 +++ b/mercurial/wireproto.py Fri Mar 28 14:36:41 2014 -0700 @@ -521,6 +521,7 @@ r.append(encodelist(b) + "\n") return "".join(r) +@wireprotocommand('branchmap') def branchmap(repo, proto): branchmap = repo.branchmap() heads = [] @@ -783,7 +784,6 @@ os.unlink(tempname) commands.update({ - 'branchmap': (branchmap, ''), 'branches': (branches, 'nodes'), 'capabilities': (capabilities, ''), 'changegroup': (changegroup, 'roots'),