Show More
@@ -43,7 +43,8 b' class basestore(object):' | |||
|
43 | 43 | raise NotImplementedError('abstract method') |
|
44 | 44 | |
|
45 | 45 | def exists(self, hashes): |
|
46 |
'''Check to see if the store contains the given hashes. |
|
|
46 | '''Check to see if the store contains the given hashes. Given an | |
|
47 | iterable of hashes it returns a mapping from hash to bool.''' | |
|
47 | 48 | raise NotImplementedError('abstract method') |
|
48 | 49 | |
|
49 | 50 | def get(self, files): |
@@ -29,7 +29,7 b' class remotestore(basestore.basestore):' | |||
|
29 | 29 | _('remotestore: put %s to remote store %s') % (source, self.url)) |
|
30 | 30 | |
|
31 | 31 | def exists(self, hashes): |
|
32 | return self._verify(hashes) | |
|
32 | return dict((h, s == 0) for (h, s) in self._stat(hashes).iteritems()) | |
|
33 | 33 | |
|
34 | 34 | def sendfile(self, filename, hash): |
|
35 | 35 | self.ui.debug('remotestore: sendfile(%s, %s)\n' % (filename, hash)) |
@@ -76,9 +76,6 b' class remotestore(basestore.basestore):' | |||
|
76 | 76 | infile = lfutil.limitreader(infile, length) |
|
77 | 77 | return lfutil.copyandhash(lfutil.blockstream(infile), tmpfile) |
|
78 | 78 | |
|
79 | def _verify(self, hashes): | |
|
80 | return dict((h, s == 0) for (h, s) in self._stat(hashes).iteritems()) | |
|
81 | ||
|
82 | 79 | def _verifyfile(self, cctx, cset, contents, standin, verified): |
|
83 | 80 | filename = lfutil.splitstandin(standin) |
|
84 | 81 | if not filename: |
General Comments 0
You need to be logged in to leave comments.
Login now