--- a/hgext/largefiles/lfutil.py Mon Jun 13 18:20:00 2016 +0100
+++ b/hgext/largefiles/lfutil.py Tue Jun 14 14:52:58 2016 -0500
@@ -214,7 +214,7 @@
if instore(repo, hash):
return (path, True)
elif repo.shared() and instore(repo, hash, True):
- return storepath(repo, hash, True)
+ return storepath(repo, hash, True), True
return (path, False)
--- a/tests/test-largefiles-cache.t Mon Jun 13 18:20:00 2016 +0100
+++ b/tests/test-largefiles-cache.t Tue Jun 14 14:52:58 2016 -0500
@@ -186,6 +186,10 @@
src/.hg/largefiles/dirstate
src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
+Verify that backwards compatibility is maintained for old storage layout
+ $ mv src/.hg/largefiles/$hash share_dst/.hg/largefiles
+ $ hg verify --quiet --lfa -R share_dst --config largefiles.usercache=
+
Inject corruption into the largefiles store and see how update handles that:
$ cd src