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 (34 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (5)
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
27
28
29
30
31
32
33
34

mtn_setup()

addfile("unique", "unique")
commit()

addfile("testfile", "blah blah")
commit()

writefile("testfile", "foo foo")
commit()

addfile("testfile2", "blah blah")
commit()

writefile("testfile2", "foo foo")
commit()

addfile("workspace_1", "foo foo");
addfile("workspace_2", "hello hello");
addfile("workspace_3", "hello hello");
addfile("workspace_4", "another unique file");

check(mtn("ls", "duplicates"), 0, true, false)
check(qgrep("testfile", "stdout"))
check(qgrep("testfile2", "stdout"))

check(not qgrep("unique", "stdout"))

check(qgrep("workspace_1", "stdout"))
check(qgrep("workspace_2", "stdout"))
check(qgrep("workspace_3", "stdout"))
check(not qgrep("workspace_4", "stdout"))