diff hgext/largefiles/wirestore.py @ 19008:9d33d6e0d442

largefiles: stat all largefiles in one batch before downloading This avoids a lot of expensive roundtrips to remote repositories ... but might be slightly slower for local operations. This will also change some aborts on missing files to warnings. That will in some situations make it possible to continue working on a repository with missing largefiles.
author Mads Kiilerich <madski@unity3d.com>
date Mon, 15 Apr 2013 23:37:43 +0200
parents ed647c59753b
children b6e71f8af5b8
line wrap: on
line diff
--- a/hgext/largefiles/wirestore.py	Mon Apr 15 23:34:36 2013 +0200
+++ b/hgext/largefiles/wirestore.py	Mon Apr 15 23:37:43 2013 +0200
@@ -26,8 +26,9 @@
         return self.remote.getlfile(hash)
 
     def _stat(self, hashes):
-        '''For each hash, return 2 if the largefile is missing, 1 if it has a
-        mismatched checksum, or 0 if it is in good condition'''
+        '''For each hash, return 0 if it is available, other values if not.
+        It is usually 2 if the largefile is missing, but might be 1 the server
+        has a corrupted copy.'''
         batch = self.remote.batch()
         futures = {}
         for hash in hashes: