Mercurial > public > mercurial-scm > hg
diff hgext/lfs/blobstore.py @ 35526:e8f80529abeb
lfs: use the local store method for opening a blob
I noticed that when I cloned without updating and then turned around and pushed
that clone to an lfs server, it was only trying to find the blob in the local
store.
Writes to the dummyremote (file based store) use local.read(), which looks at
both the usercache and local store.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 02 Jan 2018 21:46:57 -0500 |
parents | 83903433c2eb |
children | 58fda95a0202 |
line wrap: on
line diff
--- a/hgext/lfs/blobstore.py Tue Jan 02 21:18:30 2018 -0500 +++ b/hgext/lfs/blobstore.py Tue Jan 02 21:46:57 2018 -0500 @@ -262,9 +262,9 @@ request = util.urlreq.request(href) if action == 'upload': # If uploading blobs, read data from local blobstore. - with localstore.vfs(oid) as fp: + with localstore.open(oid) as fp: _verifyfile(oid, fp) - request.data = filewithprogress(localstore.vfs(oid), None) + request.data = filewithprogress(localstore.open(oid), None) request.get_method = lambda: 'PUT' for k, v in headers: