# # patch "ChangeLog" # from [dfab452b22223754b37b6473960fbd27054192a9] # to [fb4d3b8051289b3f89106719592dde52ac6c5274] # # patch "commands.cc" # from [688c544d00c8a14a7ad7764d0905f85a2f0ddfac] # to [66074ce5682e04de1bf09b9274d6eee2ad97a872] # # patch "tests/t_tags.at" # from [6b2d3281d3b1d26bb4fae6260d5a9a0f7b00a566] # to [8b32ae2dbacb65d3e1071cdf9aaafa1caf521940] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,8 @@ +2005-06-05 Nathaniel Smith + + * tests/t_tags.at: 'tag' on a non-existent revid should fail. + * commands.cc (complete): Fail on non-existent revids. + 2005-05-29 Nathaniel Smith * tests/t_epoch.at: Typo. --- commands.cc +++ commands.cc @@ -421,6 +421,8 @@ && str.size() == constants::idlen) { completion = revision_id(str); + N(app.db.revision_exists(completion), + F("no such revision '%s'") % completion); return; } --- tests/t_tags.at +++ tests/t_tags.at @@ -11,6 +11,9 @@ AT_DATA(file3, [file 3 ]) +# make sure a tag of a nonexistent revision fails +AT_CHECK(MONOTONE tag af2f6c1f3b7892672357a1018124ee80c752475d foo, [1], [ignore], [ignore]) + # make and tag revision 1 AT_CHECK(MONOTONE add file1, [], [ignore], [ignore])