diff -r 297d1b70685c -r e2fc2122029c mercurial/peer.py --- a/mercurial/peer.py Wed Aug 09 21:51:45 2017 -0700 +++ b/mercurial/peer.py Wed Aug 09 22:52:05 2017 -0700 @@ -78,9 +78,6 @@ @batchable def sample(self, one, two=None): - # Handle locally computable results first: - if not one: - yield "a local result", None # Build list of encoded arguments suitable for your wire protocol: encargs = [('one', encode(one),), ('two', encode(two),)] # Create future for injection of encoded result: