hgext/largefiles/wirestore.py
branchstable
changeset 18481 ed647c59753b
parent 17127 9e1616307c4c
child 19008 9d33d6e0d442
--- a/hgext/largefiles/wirestore.py	Sun Jan 27 11:39:51 2013 -0600
+++ b/hgext/largefiles/wirestore.py	Mon Jan 28 15:19:44 2013 +0100
@@ -26,6 +26,8 @@
         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'''
         batch = self.remote.batch()
         futures = {}
         for hash in hashes:
@@ -33,5 +35,5 @@
         batch.submit()
         retval = {}
         for hash in hashes:
-            retval[hash] = not futures[hash].value
+            retval[hash] = futures[hash].value
         return retval