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-- 736 bytes parent folder | download | duplicates (7)
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()

check(get("testfile"))
addfile("testfile")
commit()
anc = base_revision()

check(get("dont_merge"))
check(get("left"))
check(get("right"))
check(get("merged"))

copy("dont_merge", "testfile")
commit()

revert_to(anc)
copy("left", "testfile")
commit()
left = base_revision()

revert_to(anc)
copy("right", "testfile")
commit()
right = base_revision()

check(mtn("explicit_merge", left, right, "otherbranch"), 0, false, false)

-- Check that it didn't end up on our current branch, i.e. update doesn't do anything
check(mtn("update"), 0, false, false)
check(samefile("right", "testfile"))

check(mtn("checkout", "--branch=otherbranch", "otherbranch_co"), 0, false, false)
check(samefile("merged", "otherbranch_co/testfile"))