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 (26 lines) | stat: -rw-r--r-- 590 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
mtn_setup()

-- create the parent revision
addfile("foo", "blabla")
commit()
parent = base_revision()

-- do an unrelated change
addfile("bla", "blabla")
commit()
child = base_revision()

-- create some divergence
revert_to(parent)
check(mtn("attr", "set", "foo", "name", "value"), 0, false, false)
commit()

-- ensure that there are no changes in the current workspace
check(mtn("status"), 0, true, false)
check(qgrep("no changes", "stdout"))

-- update to child
check(mtn("update", "-r", child), 0, false, false)
check(mtn("status"), 0, true, false)
check(qgrep("no changes", "stdout"))