File: __driver__.lua

package info (click to toggle)
monotone 1.1-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,984 kB
  • ctags: 8,622
  • sloc: cpp: 86,450; sh: 6,906; perl: 924; makefile: 813; python: 517; lisp: 379; sql: 118; exp: 91; ansic: 52
file content (26 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (3)
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)