File: __driver__.lua

package info (click to toggle)
monotone 0.31-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 20,680 kB
  • ctags: 14,801
  • sloc: cpp: 87,711; ansic: 64,862; sh: 5,691; lisp: 954; perl: 783; makefile: 509; python: 265; sql: 98; sed: 16
file content (19 lines) | stat: -rw-r--r-- 788 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

mtn_setup()

addfile("testfile", "blah blah")
check(mtn("commit", "-b", "testbranch", "--date", "2005-08-16T03:16:00", "-m", "foo"), 0, false, false)
R0=base_revision()

writefile("testfile", "stuff stuff")
check(mtn("commit", "-b", "testbranch", "--date", "2005-08-16T03:16:00", "-m", "foo"), 0, false, false)
R1=base_revision()

writefile("testfile", "other other")
check(mtn("commit", "-b", "otherbranch", "--date", "2005-08-16T03:16:05", "-m", "foo"), 0, false, false)
R2=base_revision()

check(mtn("log", "--brief"), 0, true, false)
check(samelines("stdout", {R2.." tester@test.net 2005-08-16T03:16:05 otherbranch",
                           R1.." tester@test.net 2005-08-16T03:16:00 testbranch",
                           R0.." tester@test.net 2005-08-16T03:16:00 testbranch"}))