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 (23 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

mtn_setup()

-- This test relies on file-suturing

addfile("file", "file")

commit()

check(mtn("--branch", "testbranch", "co", "codir"), 0, false, false)

addfile("file2", "file2")

commit()

writefile("codir/file2", "file2")
check(indir("codir", mtn("add", "file2")), 0, false, false)
xfail_if(true, indir("codir", mtn("update")), 0, false, false)

-- make sure there are no changes in the workspace

check(indir("codir", mtn("diff")), 0, true, false)
check(grep('no changes', "stdout"), 0, false, false)