changeset 25913 | fa14ba7b9667 |
parent 25912 | cbbdd085c991 |
child 25993 | 0851678be71b |
--- a/mercurial/wireproto.py Wed Aug 05 14:51:34 2015 -0400 +++ b/mercurial/wireproto.py Wed Aug 05 14:15:17 2015 -0400 @@ -149,7 +149,10 @@ class wirepeer(peer.peerrepository): def batch(self): - return remotebatch(self) + if self.capable('batch'): + return remotebatch(self) + else: + return peer.localbatch(self) def _submitbatch(self, req): cmds = [] for op, argsdict in req: