# # # patch "tests/clone_creates_right__MTN_options/__driver__.lua" # from [695c3942a9dfe2396f40ab60b378537c114b8dec] # to [519e888f7c192dae07f453ffb921f946764d4c97] # ============================================================ --- tests/clone_creates_right__MTN_options/__driver__.lua 695c3942a9dfe2396f40ab60b378537c114b8dec +++ tests/clone_creates_right__MTN_options/__driver__.lua 519e888f7c192dae07f453ffb921f946764d4c97 @@ -6,11 +6,11 @@ rev = base_revision() commit() rev = base_revision() -copy("test.db", "test-old.db") +copy("test.db", "test-clone.db") writefile("testfile", "blah") commit() -testURI="file:" .. test.root .. "/test.db" +testURI="file:" .. test.root .. "/test-clone.db" -- We use RAW_MTN because it used to be that passing --db= (as -- MTN does) would hide a bug in this functionality... @@ -20,8 +20,8 @@ check(nodb_mtn("clone", "--revision", re check(nodb_mtn("clone", testURI, "testbranch", "test_dir1"), 0, false, false) check(nodb_mtn("clone", "--revision", rev, testURI, "testbranch", "test_dir2"), 0, false, false) -check(nodb_mtn("--db=" .. test.root .. "/test-old.db", "clone", testURI, "testbranch", "test_dir3"), 0, false, false) -check(nodb_mtn("--db=" .. test.root .. "/test-old.db", "clone", testURI, "testbranch", "--revision", rev, "test_dir4"), 0, false, false) +check(nodb_mtn("--db=" .. test.root .. "/test-new.db", "clone", testURI, "testbranch", "test_dir3"), 0, false, false) +check(nodb_mtn("--db=" .. test.root .. "/test-new.db", "clone", testURI, "testbranch", "--revision", rev, "test_dir4"), 0, false, false) -- checkout fails if the specified revision is not a member of the specified branch check(nodb_mtn("clone", testURI, "--revision", rev, "foobar", "test_dir5"), 1, false, false) @@ -33,7 +33,7 @@ for i = 1,2 do local dir = "test_dir"..i L("dir = ", dir, "\n") check(exists(dir.."/_MTN/options")) - check(qgrep(dir.."/_MTN/mtn.db", dir.."/_MTN/options")) + check(qgrep("test.db", dir.."/_MTN/options")) check(qgrep("testbranch", dir.."/_MTN/options")) end @@ -41,7 +41,7 @@ for i = 3,4 do local dir = "test_dir"..i L("dir = ", dir, "\n") check(exists(dir.."/_MTN/options")) - check(qgrep("test-old.db", dir.."/_MTN/options")) + check(qgrep("test-new.db", dir.."/_MTN/options")) check(qgrep("testbranch", dir.."/_MTN/options")) end