# # # add_dir "tests/importing_cvs_files_with_identical_time" # # add_dir "tests/importing_cvs_files_with_identical_time/cvs-repository" # # add_dir "tests/importing_cvs_files_with_identical_time/cvs-repository/test" # # add_file "tests/importing_cvs_files_with_identical_time/__driver__.lua" # content [c96c35bf4d237bb60787fa0b5ca2bcb32a40fc8e] # # add_file "tests/importing_cvs_files_with_identical_time/cvs-repository/test/foo,v" # content [974d3e978db63f8404a0c5c72b37182998cfe145] # ============================================================ --- tests/importing_cvs_files_with_identical_time/__driver__.lua c96c35bf4d237bb60787fa0b5ca2bcb32a40fc8e +++ tests/importing_cvs_files_with_identical_time/__driver__.lua c96c35bf4d237bb60787fa0b5ca2bcb32a40fc8e @@ -0,0 +1,26 @@ + +mtn_setup() + +-- See makerepo.sh on how this repository was created. +check(get("cvs-repository")) + +writefile("foo.0", "version 0 of test file foo\n") +writefile("foo.1", "version 1 of test file foo\n") +writefile("foo.2", "version 2 of test file foo\n") +writefile("foo.3", "version 3 of test file foo\n") +tsha0 = sha1("foo.0") +tsha1 = sha1("foo.1") +tsha2 = sha1("foo.2") +tsha3 = sha1("foo.3") + +-- import into monotone and check presence of files +check(mtn("--branch=testbranch", "cvs_import", "cvs-repository/test"), 0, false, false) +check(mtn("automate", "get_file", tsha0), 0, false) +check(mtn("automate", "get_file", tsha1), 0, false) +check(mtn("automate", "get_file", tsha2), 0, false) +check(mtn("automate", "get_file", tsha3), 0, false) + +-- also check that history is okay -- has a unique head, and it's the +-- right one. +check(mtn("checkout", "--branch=testbranch", "mtcodir"), 0, false, false) +check(samefile("foo.3", "mtcodir/foo")) ============================================================ --- tests/importing_cvs_files_with_identical_time/cvs-repository/test/foo,v 974d3e978db63f8404a0c5c72b37182998cfe145 +++ tests/importing_cvs_files_with_identical_time/cvs-repository/test/foo,v 974d3e978db63f8404a0c5c72b37182998cfe145 @@ -0,0 +1,73 @@ +head 1.4; +access; +symbols; +locks; strict; +comment @# @; + + +1.4 +date 2007.02.27.15.00.00; author markus; state Exp; +branches; +next 1.3; + +1.3 +date 2007.02.27.11.00.00; author markus; state Exp; +branches; +next 1.2; + +1.2 +date 2007.02.27.11.00.00; author markus; state Exp; +branches; +next 1.1; + +1.1 +date 2007.02.27.10.00.00; author markus; state Exp; +branches; +next ; + + +desc +@@ + + +1.4 +log address@hidden 3 +@ +text address@hidden 3 of test file foo +@ + + +1.3 +log address@hidden same message +@ +text address@hidden 1 +a1 1 +version 2 of test file foo +@ + + +1.2 +log address@hidden same message +@ +text address@hidden 1 +a1 1 +version 1 of test file foo +@ + + +1.1 +log address@hidden 0 +@ +text address@hidden 1 +a1 1 +version 0 of test file foo +@ +