# # # patch "ChangeLog" # from [35e27c7c13b9eaa89a3e64071fc9b3194ffcfd3f] # to [d6c4dd47124cb0eb475bb43a7e7c22008b97ae90] # # patch "commands.cc" # from [67a9b4263466f5706a18ad7da4dcb2a833d75308] # to [d9f3d9b1284da3e8dc1276b82d3c8eaf3ca26028] # ============================================================ --- ChangeLog 35e27c7c13b9eaa89a3e64071fc9b3194ffcfd3f +++ ChangeLog d6c4dd47124cb0eb475bb43a7e7c22008b97ae90 @@ -1,3 +1,8 @@ +2006-02-10 Matt Johnston + + * commands.cc (CMD(checkout)): wrapping in a transaction makes + a big difference. + 2006-02-09 Richard Levitte * tests/t_cvsimport.at, tests/t_cvsimport3.at, ============================================================ --- commands.cc 67a9b4263466f5706a18ad7da4dcb2a833d75308 +++ commands.cc d9f3d9b1284da3e8dc1276b82d3c8eaf3ca26028 @@ -1417,6 +1417,8 @@ // we have a special case for "checkout .", i.e., to current dir bool checkout_dot = false; + transaction_guard guard(app.db, false); + if (args.size() > 1 || app.revision_selectors.size() > 1) throw usage(name); @@ -1519,6 +1521,7 @@ remove_work_cset(); update_any_attrs(app); maybe_update_inodeprints(app); + guard.commit(); } ALIAS(co, checkout)