mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
largefiles: file storage should be relative to repo, not relative to cwd
Revealed by the test in 43cf449a75e4.
This commit is contained in:
parent
ca0638e3d0
commit
eb44c968ee
@ -156,7 +156,7 @@ def openlfdirstate(ui, repo):
|
||||
hash = readstandin(repo, lfile)
|
||||
lfdirstate.normallookup(lfile)
|
||||
try:
|
||||
if hash == hashfile(lfile):
|
||||
if hash == hashfile(repo.wjoin(lfile)):
|
||||
lfdirstate.normal(lfile)
|
||||
except OSError, err:
|
||||
if err.errno != errno.ENOENT:
|
||||
|
@ -257,6 +257,12 @@ Clone a largefiles repo.
|
||||
5 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
||||
getting changed largefiles
|
||||
3 largefiles updated, 0 removed
|
||||
$ hg debugstate --nodates
|
||||
n 644 41 .hglf/sub/large4
|
||||
n 0 -1 .hglf/sub2/large6
|
||||
n 0 -1 .hglf/sub2/large7
|
||||
n 644 9 normal3
|
||||
n 644 9 sub/normal4
|
||||
$ cd ../b
|
||||
$ hg log --template '{rev}:{node|short} {desc|firstline}\n'
|
||||
7:daea875e9014 add/edit more largefiles
|
||||
|
Loading…
Reference in New Issue
Block a user