Patchwork [1,of,7,iterbatch] peer: raise NotImplementedError for abstract submit() method

login
register
mail settings
Submitter Augie Fackler
Date March 8, 2016, 4:25 a.m.
Message ID <5fd58c8c55d052c671a4.1457411137@147.17.16.172.in-addr.arpa>
Download mbox | patch
Permalink /patch/13657/
State Accepted
Delegated to: Pierre-Yves David
Headers show

Comments

Augie Fackler - March 8, 2016, 4:25 a.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1456868276 18000
#      Tue Mar 01 16:37:56 2016 -0500
# Node ID 5fd58c8c55d052c671a4725d01f27fb1c14353a9
# Parent  85cba1c5c22c842209588d8da99da174ff4313cd
# EXP-Topic batch
peer: raise NotImplementedError for abstract submit() method

Nothing should ever call this submit method directly as it should be
overridden by concrete batcher implementations.

Patch

diff --git a/mercurial/peer.py b/mercurial/peer.py
--- a/mercurial/peer.py
+++ b/mercurial/peer.py
@@ -39,7 +39,7 @@  class batcher(object):
             return resref
         return call
     def submit(self):
-        pass
+        raise NotImplementedError()
 
 class localbatch(batcher):
     '''performs the queued calls directly'''