Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.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/localrepo.py Fri Apr 13 11:37:37 2018 -0700 +++ b/mercurial/localrepo.py Fri Apr 13 12:13:42 2018 -0700 @@ -235,6 +235,9 @@ def capabilities(self): return self._caps + def clonebundles(self): + return self._repo.tryread('clonebundles.manifest') + def debugwireargs(self, one, two, three=None, four=None, five=None): """Used to test argument passing over the wire""" return "%s %s %s %s %s" % (one, two, pycompat.bytestr(three),