# # # add_dir "tests/update_suggests_suspended_branches" # # add_file "tests/update_suggests_suspended_branches/__driver__.lua" # content [c99aa876addf95745d4b86287d5b71b02fcf3044] # ============================================================ --- tests/update_suggests_suspended_branches/__driver__.lua c99aa876addf95745d4b86287d5b71b02fcf3044 +++ tests/update_suggests_suspended_branches/__driver__.lua c99aa876addf95745d4b86287d5b71b02fcf3044 @@ -0,0 +1,20 @@ +-- this is an accompanying xfailing test for #29843 + +mtn_setup() + +addfile("testfile", "blah blah") +commit("base") +base = base_revision() + +writefile("testfile", "other other") +commit("incorrect-follower") +child = base_revision() + +check(mtn("suspend", "-b", "incorrect-follower", child), 0, false, false) +check(mtn("approve", "-b", "correct-follower", child), 0, false, false) + +check(mtn("update", "-r", base), 0, false, false) + +-- this should directly update the workspace to the child +-- revision and not ask us which branch to choose +xfail(mtn("update", "-r", child), 0, false, false)