File: __driver__.lua

package info (click to toggle)
monotone 1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 20,708 kB
  • sloc: cpp: 84,765; sh: 6,787; perl: 837; makefile: 833; python: 517; lisp: 379; sql: 118; exp: 88; ansic: 52
file content (28 lines) | stat: -rw-r--r-- 745 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()

-- We have A1 -> B1, A and B different branches.  Update from A1
-- shouldn't take us to B1.  Then propagate B -> A, and update from A1;
-- now this should take us to B1.

addfile("testfile", "stuff stuff")
commit("a")
a1 = base_revision()

writefile("testfile", "nonsense nonsense")
commit("b")
b1 = base_revision()

revert_to(a1)
-- Put in an explicit --branch, because REVERT_TO is not smart about
-- such things.
check(mtn("--branch=a", "update"), 0, false, false)
check(a1 == base_revision())

check(mtn("propagate", "b", "a"), 0, false, false)

revert_to(a1)
-- Put in an explicit --branch, because REVERT_TO is not smart about
-- such things.
check(mtn("--branch=a", "update"), 0, false, false)
check(b1 == base_revision())