# # add_file "tests/t_monotone_up.at" # # patch "ChangeLog" # from [3c7f71137a4c3af460295b48b0c0ccca3bca2ffd] # to [c9e4b3e7f3ee728be5e40af9d66507507209fd9c] # # patch "tests/t_monotone_up.at" # from [] # to [e223687505abdcc02d1579d16494182a1f2fbaa8] # # patch "testsuite.at" # from [a62d0f8215b1359408ce4621cbd50bae9a9c1c94] # to [c51c3fa1912eb930723b7167d87aee08312c8880] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,8 @@ +2005-05-04 Nathaniel Smith + + * tests/t_monotone_up.at: New test. + * testsuite.at: Add it. + 2005-05-05 Matthew Gregan * work.cc: Use attr_file_name rather than hardcoded strings. --- tests/t_monotone_up.at +++ tests/t_monotone_up.at @@ -0,0 +1,21 @@ +AT_SETUP([monotone up]) +MONOTONE_SETUP + +# People expect 'monotone up' to run update. +# Make sure it does. + +ADD_FILE(testfile, [blah blah +]) +COMMIT(testbranch) +REV0=`BASE_REVISION` + +SET_FILE(testfile, [other stuff +]) +COMMIT(testbranch) +REV1=`BASE_REVISION` + +AT_CHECK(MONOTONE checkout --branch=testbranch $REV0 codir, [], [ignore], [ignore]) +AT_CHECK(cd codir && MONOTONE up, [], [ignore], [ignore]) +AT_CHECK(cmp testfile codir/testfile) + +AT_CLEANUP --- testsuite.at +++ testsuite.at @@ -609,3 +609,4 @@ m4_include(tests/t_annotate_copy_all.at) m4_include(tests/t_cvsimport_deleted_invar.at) m4_include(tests/t_rcfile_stdin.at) +m4_include(tests/t_monotone_up.at)