# # add_file "tests/t_log_brief.at" # # patch "ChangeLog" # from [74b349a8f6ff8b3eb048b71bb9fa4d90d1495257] # to [7a135636531bf1153f957be4d8ddd6cffaba3af4] # # patch "tests/t_log_brief.at" # from [] # to [41e612ccf6a0320c64b89a7cf39996d466b3f07c] # # patch "testsuite.at" # from [ad2746994325f5386ea968832e9c328c17d600ab] # to [d9fe00c66d76bf6448f5113cc3bb51b7bd6f8d7b] # ======================================================================== --- ChangeLog 74b349a8f6ff8b3eb048b71bb9fa4d90d1495257 +++ ChangeLog 7a135636531bf1153f957be4d8ddd6cffaba3af4 @@ -1,5 +1,10 @@ 2005-08-15 Nathaniel Smith + * tests/t_log_brief.at: New test. + * testsuite.at: Add it. + +2005-08-15 Nathaniel Smith + * commands.cc (fcommit): Remove. This command has never been documented, tested, or maintained; it also doesn't avoid the use of temporary files (which was supposed to be its purpose). Has it ======================================================================== --- tests/t_log_brief.at +++ tests/t_log_brief.at 41e612ccf6a0320c64b89a7cf39996d466b3f07c @@ -0,0 +1,25 @@ +AT_SETUP([log --brief]) +MONOTONE_SETUP + +ADD_FILE(testfile, [blah blah +]) +AT_CHECK(MONOTONE commit -b testbranch --date "2005-08-16T03:16:00" -m foo, [], [ignore], [ignore]) +R0=`BASE_REVISION` + +SET_FILE(testfile, [stuff stuff +]) +AT_CHECK(MONOTONE commit -b testbranch --date "2005-08-16T03:16:00" -m foo, [], [ignore], [ignore]) +R1=`BASE_REVISION` + +SET_FILE(testfile, [other other +]) +AT_CHECK(MONOTONE commit -b otherbranch --date "2005-08-16T03:16:05" -m foo, [], [ignore], [ignore]) +R2=`BASE_REVISION` + +AT_CHECK(MONOTONE log --brief, [], [stdout], [ignore]) +AT_CHECK(echo "$R2 address@hidden 2005-08-16T03:16:05 otherbranch" > target) +AT_CHECK(echo "$R1 address@hidden 2005-08-16T03:16:00 testbranch" >> target) +AT_CHECK(echo "$R0 address@hidden 2005-08-16T03:16:00 testbranch" >> target) +AT_CHECK(cmp stdout target) + +AT_CLEANUP ======================================================================== --- testsuite.at ad2746994325f5386ea968832e9c328c17d600ab +++ testsuite.at d9fe00c66d76bf6448f5113cc3bb51b7bd6f8d7b @@ -692,3 +692,4 @@ m4_include(tests/t_commit_cancelled.at) m4_include(tests/t_merge_lca.at) m4_include(tests/t_commit_log_writeback.at) +m4_include(tests/t_log_brief.at)