Mercurial > hg
diff mercurial/wireprotov1peer.py @ 37649:a168799687e5
wireproto: properly call clonebundles command
We should not be using _call() to make wire protocol calls because
it isn't part of the peer API.
But clonebundles wasn't part of the supported commands in the
peer API!
So this commit defines that command in the commands interface,
implements it, and teaches the one caller in core to call it using
the command executor interface.
Differential Revision: https://phab.mercurial-scm.org/D3317
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 13 Apr 2018 12:13:42 -0700 |
parents | 72e26319f3b8 |
children | 62ebfda864de |
line wrap: on
line diff
--- a/mercurial/wireprotov1peer.py Fri Apr 13 11:37:37 2018 -0700 +++ b/mercurial/wireprotov1peer.py Fri Apr 13 12:13:42 2018 -0700 @@ -322,6 +322,10 @@ # Begin of ipeercommands interface. + def clonebundles(self): + self.requirecap('clonebundles', _('clone bundles')) + return self._call('clonebundles') + @batchable def lookup(self, key): self.requirecap('lookup', _('look up remote revision'))