Submitter | Mads Kiilerich |
---|---|
Date | April 16, 2013, 2:43 a.m. |
Message ID | <889ccb073d7e346d761c.1366080200@mk-desktop> |
Download | mbox | patch |
Permalink | /patch/1331/ |
State | Accepted |
Commit | eaf146e811a44af12b3a9cbf053117d142f258e4 |
Headers | show |
Comments
Patch
diff --git a/hgext/largefiles/localstore.py b/hgext/largefiles/localstore.py --- a/hgext/largefiles/localstore.py +++ b/hgext/largefiles/localstore.py @@ -36,11 +36,8 @@ def _getfile(self, tmpfile, filename, hash): - if lfutil.instore(self.remote, hash): - path = lfutil.storepath(self.remote, hash) - elif lfutil.inusercache(self.ui, hash): - path = lfutil.usercachepath(self.ui, hash) - else: + path = lfutil.findfile(self.remote, hash) + if not path: raise basestore.StoreError(filename, hash, self.url, _("can't get file locally")) fd = open(path, 'rb')