comparison mercurial/patch.py @ 33161:b8ae289a7707

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 30 Jun 2017 09:07:24 -0700
parents 53238678b1ca
children 5ebf39ae10ed
comparison
equal deleted inserted replaced
33160:4ecc6047d45f 33161:b8ae289a7707
444 files. 444 files.
445 """ 445 """
446 pass 446 pass
447 447
448 def exists(self, fname): 448 def exists(self, fname):
449 raise NotImplementedError
450
451 def close(self):
449 raise NotImplementedError 452 raise NotImplementedError
450 453
451 class fsbackend(abstractbackend): 454 class fsbackend(abstractbackend):
452 def __init__(self, ui, basedir): 455 def __init__(self, ui, basedir):
453 super(fsbackend, self).__init__(ui) 456 super(fsbackend, self).__init__(ui)