Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
37648:8f3c6fb55369 | 37649:a168799687e5 |
---|---|
232 def branchmap(self): | 232 def branchmap(self): |
233 return self._repo.branchmap() | 233 return self._repo.branchmap() |
234 | 234 |
235 def capabilities(self): | 235 def capabilities(self): |
236 return self._caps | 236 return self._caps |
237 | |
238 def clonebundles(self): | |
239 return self._repo.tryread('clonebundles.manifest') | |
237 | 240 |
238 def debugwireargs(self, one, two, three=None, four=None, five=None): | 241 def debugwireargs(self, one, two, three=None, four=None, five=None): |
239 """Used to test argument passing over the wire""" | 242 """Used to test argument passing over the wire""" |
240 return "%s %s %s %s %s" % (one, two, pycompat.bytestr(three), | 243 return "%s %s %s %s %s" % (one, two, pycompat.bytestr(three), |
241 pycompat.bytestr(four), | 244 pycompat.bytestr(four), |