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

mtn_setup()

function chk()
  check(mtn("automate", "get_current_revision_id"), 0, true, false)
  rename("stdout", "current")
  check(mtn("automate", "get_current_revision"), 0, true)
  check(mtn("identify"), 0, true, nil, {"stdout"})
  check(trim(readfile("current")) == trim(readfile("stdout")))
end

-- check pending changes against an empty base

addfile("foo", "this is file foo")

chk()

commit()

-- check changes against a non-empty base

addfile("bar", "this is file bar")

chk()