# # add_file "tests/t_restricted_diff_unchanged.at" # # patch "ChangeLog" # from [61257f105281c1958639e4711726f487df5f13e0] # to [166ba10293ed6775e1835abbdea3c63ad87e2135] # # patch "tests/t_restricted_diff_unchanged.at" # from [] # to [aa1b5c9d50296b24e69a619088806821993b7c1a] # # patch "testsuite.at" # from [35beb1e1f80eab0411f3bd2783d34a989062e82c] # to [ab14f67b36bdae6519026513aac992bb0d6e9e2c] # --- ChangeLog +++ ChangeLog @@ -1,5 +1,10 @@ 2005-07-13 Nathaniel Smith + * tests/t_restricted_diff_unchanged.at: New test. + * testsuite.at: Add it. + +2005-07-13 Nathaniel Smith + * monotone.texi (Database): Document kill_tag_locally. 2005-07-13 Nathaniel Smith --- tests/t_restricted_diff_unchanged.at +++ tests/t_restricted_diff_unchanged.at @@ -0,0 +1,23 @@ +AT_SETUP([diff -rREV1 -rREV2 UNCHANGED-FILE]) +MONOTONE_SETUP + +# This test is a bug report. The problem appears to be in +# calculated_restricted_change_set, as called by do_diffs; it passes a +# very sparse valid_paths argument to app.set_restriction. +AT_XFAIL_IF(true) + +ADD_FILE(testfile, [blah blah +]) +ADD_FILE(otherfile, [foo bar +]) +COMMIT(testbranch) +R1=`BASE_REVISION` + +SET_FILE(otherfile, [stuff stuff +]) +COMMIT(testbranch) +R2=`BASE_REVISION` + +AT_CHECK(MONOTONE diff -r$R1 -r$R2 testfile, [], [], [ignore]) + +AT_CLEANUP --- testsuite.at +++ testsuite.at @@ -671,3 +671,4 @@ m4_include(tests/t_netsync_exclude_default.at) m4_include(tests/t_ambiguous_tags.at) m4_include(tests/t_kill_tag_locally.at) +m4_include(tests/t_restricted_diff_unchanged.at)