Mercurial > public > mercurial-scm > hg
comparison mercurial/peer.py @ 28434:d549cbb5503d
peer: raise NotImplementedError for abstract submit() method
Nothing should ever call this submit method directly as it should be
overridden by concrete batcher implementations.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 01 Mar 2016 16:37:56 -0500 |
parents | e6b56b2c1f26 |
children | 8d38eab2777a |
comparison
equal
deleted
inserted
replaced
28433:3b67f27bb908 | 28434:d549cbb5503d |
---|---|
37 resref = future() | 37 resref = future() |
38 self.calls.append((name, args, opts, resref,)) | 38 self.calls.append((name, args, opts, resref,)) |
39 return resref | 39 return resref |
40 return call | 40 return call |
41 def submit(self): | 41 def submit(self): |
42 pass | 42 raise NotImplementedError() |
43 | 43 |
44 class localbatch(batcher): | 44 class localbatch(batcher): |
45 '''performs the queued calls directly''' | 45 '''performs the queued calls directly''' |
46 def __init__(self, local): | 46 def __init__(self, local): |
47 batcher.__init__(self) | 47 batcher.__init__(self) |