Mercurial > hg
diff hgext/largefiles/remotestore.py @ 18573:003730ca254d
largefiles: fold oddly named _verify into remotestore.exists
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 08 Feb 2013 13:00:08 +0100 |
parents | d43823f928fe |
children | 2a35296a6304 |
line wrap: on
line diff
--- a/hgext/largefiles/remotestore.py Fri Feb 08 07:09:48 2013 -0600 +++ b/hgext/largefiles/remotestore.py Fri Feb 08 13:00:08 2013 +0100 @@ -29,7 +29,7 @@ _('remotestore: put %s to remote store %s') % (source, self.url)) def exists(self, hashes): - return self._verify(hashes) + return dict((h, s == 0) for (h, s) in self._stat(hashes).iteritems()) def sendfile(self, filename, hash): self.ui.debug('remotestore: sendfile(%s, %s)\n' % (filename, hash)) @@ -76,9 +76,6 @@ infile = lfutil.limitreader(infile, length) return lfutil.copyandhash(lfutil.blockstream(infile), tmpfile) - def _verify(self, hashes): - return dict((h, s == 0) for (h, s) in self._stat(hashes).iteritems()) - def _verifyfile(self, cctx, cset, contents, standin, verified): filename = lfutil.splitstandin(standin) if not filename: