--- a/hgext/largefiles/remotestore.py Mon Jan 28 15:19:44 2013 +0100
+++ b/hgext/largefiles/remotestore.py Mon Jan 28 15:19:44 2013 +0100
@@ -48,11 +48,14 @@
def _getfile(self, tmpfile, filename, hash):
# quit if the largefile isn't there
- stat = self._stat(hash)
+ stat = self._stat([hash])[hash]
if stat == 1:
raise util.Abort(_('remotestore: largefile %s is invalid') % hash)
elif stat == 2:
raise util.Abort(_('remotestore: largefile %s is missing') % hash)
+ elif stat != 0:
+ raise RuntimeError('error getting file: unexpected response from '
+ 'statlfile (%r)' % stat)
try:
length, infile = self._get(hash)