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 (28 lines) | stat: -rw-r--r-- 735 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

mtn_setup()

check(get("parent"))
check(get("left"))
check(get("right"))

parent = "fe24df7edf04cb06161defc10b252c5fa32bf1f7"
left = "f4657ce998dd0e39465a3f345f3540b689fd60ad"
right = "1836ed24710f5b8943bed224cf296689c6a106c2"

check(sha1("parent") == parent)
check(sha1("left") == left)
check(sha1("right") == right)

copy("parent", "stdin")
check(mtn("fload"), 0, false, false, true)
copy("left", "stdin")
check(mtn("fload"), 0, false, false, true)
copy("right", "stdin")
check(mtn("fload"), 0, false, false, true)

check(mtn("fmerge", parent, left, right), 0, true, false)
canonicalize("stdout")
rename("stdout", "merge.monotone")

-- in this case the output should be the same as right.
check(samefile("merge.monotone", "right"))