comparison tests/test-lfs-test-server.t @ 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 6bb940de4c4c
children fd610befc37f
comparison
equal deleted inserted replaced
35525:83903433c2eb 35526:e8f80529abeb
36 $ hg init repo1 36 $ hg init repo1
37 $ cd repo1 37 $ cd repo1
38 $ echo THIS-IS-LFS > a 38 $ echo THIS-IS-LFS > a
39 $ hg commit -m a -A a 39 $ hg commit -m a -A a
40 40
41 A push can be serviced directly from the usercache if it isn't in the local
42 store.
43
41 $ hg init ../repo2 44 $ hg init ../repo2
45 $ mv .hg/store/lfs .hg/store/lfs_
42 $ hg push ../repo2 -v 46 $ hg push ../repo2 -v
43 pushing to ../repo2 47 pushing to ../repo2
44 searching for changes 48 searching for changes
45 lfs: uploading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes) 49 lfs: uploading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes)
46 lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b 50 lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b
52 adding changesets 56 adding changesets
53 adding manifests 57 adding manifests
54 adding file changes 58 adding file changes
55 added 1 changesets with 1 changes to 1 files 59 added 1 changesets with 1 changes to 1 files
56 calling hook pretxnchangegroup.lfs: hgext.lfs.checkrequireslfs 60 calling hook pretxnchangegroup.lfs: hgext.lfs.checkrequireslfs
61 $ mv .hg/store/lfs_ .hg/store/lfs
57 62
58 Clear the cache to force a download 63 Clear the cache to force a download
59 $ rm -rf `hg config lfs.usercache` 64 $ rm -rf `hg config lfs.usercache`
60 $ cd ../repo2 65 $ cd ../repo2
61 $ hg update tip -v 66 $ hg update tip -v