1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
mtn_setup()
-- This test is a bug report, now fixed. The problem was:
--
-- inodeprints tries to update its cache for all files in the complete
-- manifest, but a restricted commit can succeed with missing files if
-- they are excluded. subsequently the inodeprint update fails because
-- it can't build a complete manifest due to the missing files.
addfile("file1", "file1")
commit()
-- enable inodeprints mode
check(mtn("refresh_inodeprints"), 0, false, false)
addfile("file2", "file2")
-- create a missing file
remove("file1")
-- restricted commit of file2 succeeds with file1 missing
check(mtn("commit", "--message=file2", "file2"), 0, false, false)
|