# # # add_file "tests/t_revert_new_project.at" # content [ac8b9497aa5d1a89d01be066365bddb8b3889baf] # # patch "ChangeLog" # from [ac9340c6c4fa7b480c46f7239e4e1d81e5cfc5c1] # to [30c23caad778d36107d5cbdf04ca5e2e0c53cf88] # # patch "testsuite.at" # from [4fb9cd7e48089507285848138527d727a364860d] # to [e18a643c52cfc8b68b078e6d4ea9728780ecaa64] # ============================================================ --- tests/t_revert_new_project.at ac8b9497aa5d1a89d01be066365bddb8b3889baf +++ tests/t_revert_new_project.at ac8b9497aa5d1a89d01be066365bddb8b3889baf @@ -0,0 +1,32 @@ +# -*- Autoconf -*- + +AT_SETUP([revert file in new project]) + +AT_XFAIL_IF(true) + +MONOTONE_SETUP + + +# reverting one of one files +AT_DATA(testfile0, [version 0 of first test file +]) + +AT_CHECK(MONOTONE add testfile0, [], [ignore], [ignore]) +AT_CHECK(MONOTONE revert testfile0, [], [ignore], [ignore]) +AT_CHECK(MONOTONE status, [], [stdout], [ignore]) +AT_CHECK(grep testfile0 stdout, [1], [ignore]) + + +# reverting one of two files +AT_DATA(testfile0, [version 0 of first test file +]) +AT_DATA(testfile1, [version 0 of second test file +]) + +AT_CHECK(MONOTONE add testfile0 testfile1, [], [ignore], [ignore]) +AT_CHECK(MONOTONE revert testfile0, [], [ignore], [ignore]) +AT_CHECK(MONOTONE status, [], [stdout], [ignore]) +AT_CHECK(grep testfile0 stdout, [1], [ignore]) + + +AT_CLEANUP ============================================================ --- ChangeLog ac9340c6c4fa7b480c46f7239e4e1d81e5cfc5c1 +++ ChangeLog 30c23caad778d36107d5cbdf04ca5e2e0c53cf88 @@ -1,5 +1,11 @@ 2006-02-18 Matthew Gregan + * tests/t_revert_new_project.at: Add an XFAIL test for a bug where + reverting a file added in a new project will leave the workspace + in a bad state until MT/work is removed manually. + + * testsuite.at: Add t_revert_new_project.at. + * app_state.cc, app_state.hh, commands.cc, monotone.cc, options.hh: Add '--no-files' option to log to allow users to exclude the list of files changed in each revision from the log ============================================================ --- testsuite.at 4fb9cd7e48089507285848138527d727a364860d +++ testsuite.at e18a643c52cfc8b68b078e6d4ea9728780ecaa64 @@ -757,3 +757,4 @@ m4_include(tests/t_check_db_format.at) m4_include(tests/t_rename_destdir.at) m4_include(tests/t_ls_changed.at) +m4_include(tests/t_revert_new_project.at)