# # # patch "tests/cert_no_branch/__driver__.lua" # from [0b0d33c56cf0706bd6a4318c4a1fe305e9ad5e1f] # to [1d92c8fbb7e211bd844e462d21ba72d853af4199] # ============================================================ --- tests/cert_no_branch/__driver__.lua 0b0d33c56cf0706bd6a4318c4a1fe305e9ad5e1f +++ tests/cert_no_branch/__driver__.lua 1d92c8fbb7e211bd844e462d21ba72d853af4199 @@ -1,13 +1,18 @@ --- test that 'mtn cert' does not require a branch +-- test that 'mtn cert' does not require a branch option, even when +-- there is no branch cert on the revision. +-- -- bug# 7221 mtn_setup() addfile("base", "base") -commit() +commit("testbranch") rev = base_revision() --- ensure we don't find a branch +-- delete the branch cert from the revision +check(mtn("db", "kill_branch_certs_locally", "testbranch"), 0, false, false) + +-- ensure we don't find a branch option remove("_MTN") check(mtn("cert", rev, "branch", "anotherbranch"), 0, false, false)