# # add_file "tests/t_unidiff3.at" # # patch "ChangeLog" # from [373c1ed8cd034c3e9374e578141d6335b5fb33b8] # to [b04c6468f79f0dabe29efdade5dae1276e1ce6e1] # # patch "tests/t_unidiff3.at" # from [] # to [0dd1c36bed7368620ef9bfacff424ddc6b6b5e63] # --- ChangeLog +++ ChangeLog @@ -1,5 +1,10 @@ 2005-05-13 Joel Reed + * tests/t_unidiff3.at: opps. forgot to add this file which + should have been included as fix for bug 13072. + +2005-05-13 Joel Reed + * diff_patch.cc, transforms.cc, testsuite.at: Patch from address@hidden, who writes: "The attached patch should fix bug 13072. I have no idea why the code in transform.cc insists on --- tests/t_unidiff3.at +++ tests/t_unidiff3.at @@ -0,0 +1,21 @@ +AT_SETUP([diff against empty file]) +MONOTONE_SETUP + +AT_CHECK(printf "1\n2\n", [], [stdout]) +AT_CHECK(mv stdout foo) + +AT_CHECK(MONOTONE add foo, [], [ignore], [ignore]) +AT_CHECK(MONOTONE --branch=foo commit -m foo, [], [ignore], [ignore]) + +AT_CHECK(mv foo foo.away) +AT_CHECK(touch foo) +AT_CHECK(MONOTONE diff foo, [], [stdout]) +AT_CHECK(mv stdout monodiff, [], [ignore]) + +# see whether the patch is well-formed +AT_CHECK(patch -p0 -R < monodiff, [], [ignore], [ignore]) + +# see whether the resulting file is the same as the original one +AT_CHECK(cmp foo foo.away, [], [ignore]) + +AT_CLEANUP