[PATCH 1 of 4] basestore: remove _verifyfile abstract method
liscju
piotr.listkiewicz at gmail.com
Mon May 2 20:19:09 UTC 2016
# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462205668 -7200
# Mon May 02 18:14:28 2016 +0200
# Branch stable
# Node ID a06124951cf43126a92ab77290f8c182e9ebbb1e
# Parent f85de28eae32e7d3064b1a1321309071bbaaa069
basestore: remove _verifyfile abstract method
This prepares for having different implementations of verify
in localstore and remotestore, so veryfying
single file can differ in parameters passed to _verifyfile.
Its better just to make _verifyfile detail of implementation
of verify.
diff -r f85de28eae32 -r a06124951cf4 hgext/largefiles/basestore.py
--- a/hgext/largefiles/basestore.py Sat Apr 30 21:21:17 2016 -0700
+++ b/hgext/largefiles/basestore.py Mon May 02 18:14:28 2016 +0200
@@ -150,16 +150,6 @@ class basestore(object):
exist in the store).'''
raise NotImplementedError('abstract method')
- def _verifyfile(self, cctx, cset, contents, standin, verified):
- '''Perform the actual verification of a file in the store.
- 'cset' is only used in warnings.
- 'contents' controls verification of content hash.
- 'standin' is the standin path of the largefile to verify.
- 'verified' is maintained as a set of already verified files.
- Returns _true_ if it is a standin and any problems are found!
- '''
- raise NotImplementedError('abstract method')
-
import localstore, wirestore
_storeprovider = {
More information about the Mercurial-devel
mailing list