diff -r 297d1b70685c -r e2fc2122029c mercurial/wireproto.py --- a/mercurial/wireproto.py Wed Aug 09 21:51:45 2017 -0700 +++ b/mercurial/wireproto.py Wed Aug 09 22:52:05 2017 -0700 @@ -95,11 +95,9 @@ if batchablefn is not None: batchable = batchablefn(mtd.im_self, *args, **opts) encargsorres, encresref = next(batchable) - if encresref: - req.append((name, encargsorres,)) - rsp.append((batchable, encresref, resref,)) - else: - resref.set(encargsorres) + assert encresref + req.append((name, encargsorres,)) + rsp.append((batchable, encresref, resref,)) else: if req: self._submitreq(req, rsp)