hgext/largefiles/wirestore.py
changeset 17127 9e1616307c4c
parent 16686 67964cda8701
child 18481 ed647c59753b
--- a/hgext/largefiles/wirestore.py	Wed Jul 04 02:21:04 2012 +0200
+++ b/hgext/largefiles/wirestore.py	Sun Jun 24 20:36:22 2012 +0200
@@ -25,5 +25,13 @@
     def _get(self, hash):
         return self.remote.getlfile(hash)
 
-    def _stat(self, hash):
-        return self.remote.statlfile(hash)
+    def _stat(self, hashes):
+        batch = self.remote.batch()
+        futures = {}
+        for hash in hashes:
+            futures[hash] = batch.statlfile(hash)
+        batch.submit()
+        retval = {}
+        for hash in hashes:
+            retval[hash] = not futures[hash].value
+        return retval