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"))
|