# # # patch "NEWS" # from [0dee337ea44af422a00dfacf962d088d5a5cb0c0] # to [e5ca613350348837f153bc8dc30c789a2eaac35e] # # patch "automate.cc" # from [060a251cef12fc73aafe107f77110972ea686a9e] # to [f5e20383f535cdb67c487301422031aec585807d] # ============================================================ --- NEWS 0dee337ea44af422a00dfacf962d088d5a5cb0c0 +++ NEWS e5ca613350348837f153bc8dc30c789a2eaac35e @@ -1,3 +1,13 @@ +??? ??? ? ??:??:?? UTC 2007 + + 0.37 release. + + Bugs fixed + + - mtn automate heads called without a branch argument now properly + returns the head revisions of the workspace's branch if called + over mtn automate stdio + Fri Aug 3 06:08:36 UTC 2007 0.36 release. ============================================================ --- automate.cc 060a251cef12fc73aafe107f77110972ea686a9e +++ automate.cc f5e20383f535cdb67c487301422031aec585807d @@ -69,12 +69,19 @@ CMD_AUTOMATE(heads, N_("[BRANCH]"), N(args.size() < 2, F("wrong argument count")); - if (args.size() ==1 ) { + system_path database_option; + branch_name branch_option; + rsa_keypair_id key_option; + system_path keydir_option; + app.work.get_ws_options(database_option, branch_option, + key_option, keydir_option); + + if (args.size() == 1 ) { // branchname was explicitly given, use that - app.opts.branchname = branch_name(idx(args, 0)()); + branch_option = branch_name(idx(args, 0)()); } set heads; - app.get_project().get_branch_heads(app.opts.branchname, heads); + app.get_project().get_branch_heads(branch_option, heads); for (set::const_iterator i = heads.begin(); i != heads.end(); ++i) output << (*i).inner()() << '\n'; }