# HG changeset patch # User Martin von Zweigbergk # Date 1498838844 25200 # Node ID b8ae289a7707014a6e88506a3111506e7c9023fb # Parent 4ecc6047d45f9ca18f7d13347fa8d1652bbaaad6 patch: add close() to abstractbackend patchbackend() seems to call it on an arbitrary backend, so it seems to be part of the API. Since all subclasses do something in their close() methods, I decided to let this one raise an exception rather than just pass. diff -r 4ecc6047d45f -r b8ae289a7707 mercurial/patch.py --- a/mercurial/patch.py Mon Jun 26 15:46:24 2017 +0200 +++ b/mercurial/patch.py Fri Jun 30 09:07:24 2017 -0700 @@ -448,6 +448,9 @@ def exists(self, fname): raise NotImplementedError + def close(self): + raise NotImplementedError + class fsbackend(abstractbackend): def __init__(self, ui, basedir): super(fsbackend, self).__init__(ui)