Hi Jim,
Jim Mitchell wrote:
> We're having problems performing a sync when the depot
> is already up to date. Here's the stacktrace that we
> got when the rakefile checkout task attempted to sync
> an already current depot:
>
> [exec] ** Invoke checkout (first_time)
> [exec] ** Execute checkout
> [exec] rake aborted!
> [exec] [P4#run] Warnings during command execution(
"p4
> sync" )
> [exec] [Warning]: File(s) up-to-date.
> [exec] c:/ruby/lib/ruby/1.8/P4.rb:131:in `run'
> [exec] c:/ruby/lib/ruby/1.8/P4.rb:131:in
> `method_missing'
You're using exception level RAISE_ALL (the default) in
which exceptions
are raised on warnings as well as errors. The 'file(s)
up-to-date'
message is a warning.
To avoid this, either switch to exception level RAISE_ERRORS
globally or
just for the sync.:
(a)
p4.exception_level = P4::RAISE_ERRORS
p4.run_sync
(b)
p4.at_exception_level( P4::RAISE_ERRORS ) do
p4.run_sync
end
Hope that helps!
Tony
_______________________________________________
p4ruby mailing list
p4ruby perforce.com
http://maillist.perforce.com/mailman/listinfo/p4ruby
|