List Info

Thread: force sync through p4ruby?




force sync through p4ruby?
country flaguser name
United States
2007-02-08 13:20:36
Greetings,

Is there a way to force sync a workspace using the p4ruby
API? I'm 
looking for the equivalent of the "p4 sync -f"
command which forces 
resynchronization even if the client already has the file.

I'm currently using the p4.run_sync method to perform a
normal sync, but 
not sure how to change its' behavior.


thank you,

-- 
Daniel Anolik
Software Configuration Management - Marine Applications
(503) 419-5044
_________________________________________________
Jeppesen Technology Services - A Boeing Company
Making Every Mission Possible
www.jeppesen.com
_______________________________________________
p4ruby mailing list
p4rubyperforce.com

http://maillist.perforce.com/mailman/listinfo/p4ruby

Re: force sync through p4ruby?
country flaguser name
United States
2007-02-08 18:04:09
Hi Jeff,

That works great. Thanks for your help.


Dan

Jeff A. Bowles wrote:
> Start with "run_sync" but give it an
argument:
>    ret = p4.run_sync("-f")
>  
> Try that...
>  
>   -Jeff Bowles
>  
> On 2/8/07, *Daniel Anolik* <daniel.anolikjeppesen.com 
> <mailto:daniel.anolikjeppesen.com>>
wrote:
> 
>     Greetings,
> 
>     Is there a way to force sync a workspace using the
p4ruby API? I'm
>     looking for the equivalent of the "p4 sync
-f" command which forces
>     resynchronization even if the client already has
the file.
> 
>     I'm currently using the p4.run_sync method to
perform a normal sync, but
>     not sure how to change its' behavior.
> 
> 
>     thank you,
> 
>     --
>     Daniel Anolik
>     Software Configuration Management - Marine
Applications
>     (503) 419-5044
>     _________________________________________________
>     Jeppesen Technology Services - A Boeing Company
>     Making Every Mission Possible
>     www.jeppesen.com <http://www.jeppesen.com&g
t;
>     _______________________________________________
>     p4ruby mailing list
>     p4rubyperforce.com <mailto:p4rubyperforce.com>
>     
http://maillist.perforce.com/mailman/listinfo/p4ruby
> 
> 
> 
> 
> -- 
> ---
> Jeff Bowles - jabpiccoloeng.com <mailto:jabpiccoloeng.com>


-- 
Daniel Anolik
Software Configuration Management - Marine Applications
(503) 419-5044

_________________________________________________
Jeppesen Technology Services
Making Every Mission Possible
www.jeppesen.com
_______________________________________________
p4ruby mailing list
p4rubyperforce.com

http://maillist.perforce.com/mailman/listinfo/p4ruby

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )