Mercurial > hg-stable
changeset 20908:ae4bf69c8068
wireproto: use decorator for the between command
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 28 Mar 2014 14:36:05 -0700 |
parents | aedec880e095 |
children | c8b9cbf55840 |
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:35:36 2014 -0700 +++ b/mercurial/wireproto.py Fri Mar 28 14:36:05 2014 -0700 @@ -513,6 +513,7 @@ res.append(escapearg(result)) return ';'.join(res) +@wireprotocommand('between', 'pairs') def between(repo, proto, pairs): pairs = [decodelist(p, '-') for p in pairs.split(" ")] r = [] @@ -782,7 +783,6 @@ os.unlink(tempname) commands.update({ - 'between': (between, 'pairs'), 'branchmap': (branchmap, ''), 'branches': (branches, 'nodes'), 'capabilities': (capabilities, ''),