# # add_file "tests/t_update_inodeprints.at" # # patch "ChangeLog" # from [09578d73b8901070f5e9068cbbe2da269e3e9fe6] # to [956363307d380d36580dcdfc327439254a4b6625] # # patch "monotone.1" # from [90747fd6770890c29786a41b48dbc807e13a5d9b] # to [8a4615b38f6f7ed8ed160f0609f40d7336bb0859] # # patch "monotone.texi" # from [39658b68662d6e52e7554098c647d20f08f140dd] # to [cbe1d8c48f592cf59c45e9d141b29ed0015c2d92] # # patch "tests/t_update_inodeprints.at" # from [] # to [8e9ec9723a232850248e679a59a28c8ec043f3e9] # # patch "testsuite.at" # from [c95827be5d2e1b6c8f78a6670c09b041c3717b64] # to [7dac50592da5ec9195eabbf66d3e2bcf1d64565b] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,11 @@ +2005-04-27 Nathaniel Smith + + * monotone.texi (Working Copy, Commands): Document update_inodeprints. + * monotone.1: Likewise. + + * tests/t_update_inodeprints.at: New test. + * testsuite.at: Add it. + 2005-04-27 Richard Levitte * database.cc (selector_to_certname): Add a case for --- monotone.1 +++ monotone.1 @@ -152,13 +152,16 @@ the command ine, it is used; otherwise a log message editor will be invoked. .TP -\fBupdate\fP +\fBupdate\fP \fI[revision-id]\fP Update working copy. .TP -\fBpush\fP \fI \fP +\fBupdate_inodeprints\fP +Turn on inodeprints mode, and force a cache refresh. +.TP +\fBpush\fP \fI[ []]\fP Push contents of \fI\fP to database on \fI\fP .TP -\fBpull\fP \fI \fP +\fBpull\fP \fI[ []]\fP Push contents of \fI\fP from database on \fI\fP .TP \fBsync\fP \fI \fP --- monotone.texi +++ monotone.texi @@ -3523,6 +3523,13 @@ becomes the new default branch of the working copy (even if you also specify an explicit @var{revision} argument). address@hidden monotone update_inodeprints +This command puts the current working copy into @ref{Inodeprints} mode, +if it was not already, and forces a full inodeprints cache refresh. +After running this command, you are guaranteed that your working copy is +in inodeprints mode, and that the inodeprints cache is accurate and up +to date. + @end ftable @page @@ -6267,6 +6274,9 @@ Update working copy. @comment TROFF INPUT: .SH DESCRIPTION address@hidden @b{update_inodeprints} +Turn on inodeprints mode, and force a cache refresh. + @item @b{push} @i{ } Push contents of @i{} to database on @i{} @comment TROFF INPUT: .SH DESCRIPTION --- tests/t_update_inodeprints.at +++ tests/t_update_inodeprints.at @@ -0,0 +1,14 @@ +AT_SETUP([update_inodeprints]) +MONOTONE_SETUP + +ADD_FILE(testfile, [blah blah +]) +COMMIT(testbranch) + +AT_CHECK(test -e MT/inodeprints, [1]) + +AT_CHECK(MONOTONE update_inodeprints) + +AT_CHECK(test -s MT/inodeprints) + +AT_CLEANUP --- testsuite.at +++ testsuite.at @@ -587,3 +587,4 @@ m4_include(tests/t_i18n_file_data.at) m4_include(tests/t_cvsimport_manifest_cycle.at) m4_include(tests/t_select_cert.at) +m4_include(tests/t_update_inodeprints.at)