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 (35 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (4)
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
35

includecommon("netsync.lua")
mtn_setup()
netsync.setup()

addfile("testfile", "version 0 data")
commit("testbranch")
ver = {}
ver[0] = base_revision()

netsync.pull("testbranch")

addfile("testfile2", "some data")
commit("testbranch")
ver[1] = base_revision()

revert_to(ver[0])
remove("testfile2")

writefile("testfile", "version 1 data")
commit("testbranch")
ver[2] = base_revision()

check(mtn("--branch=testbranch", "merge"), 0, false, false)
check(mtn("update"), 0, false, false)
ver[3] = base_revision()

netsync.pull("testbranch")

check_same_stdout(mtn("automate", "graph"), mtn2("automate", "graph"))

for i = 1,3 do
  check_same_stdout(mtn("ls", "certs", ver[i]),
                    mtn2("ls", "certs", ver[i]))
end