[p4ruby] p4ruby sync problem

Joerg Krautwurst-Schmid Joerg_Krautwurst-Schmid at CoCreate.com
Thu Mar 31 02:15:32 PST 2005

Well I think I got the problem,
rescue P4Exception => msg
   puts( msg )
    p4.warnings.each { |w| puts( w ) }
    p4.errors.each { |e| puts( e ) }
    p4.output.each { |o| puts( o ) }
I took this snippet from the example.rb. My problem was that the
"file(s) up-to-date" message from perforce is a warning (well it's like
it is).
Now I can check this.

>> Joerg Krautwurst-Schmid JKS <<



	From: p4ruby-bounces at perforce.com
[mailto:p4ruby-bounces at perforce.com] On Behalf Of Joerg
	Sent: Thursday, March 31, 2005 12:08 PM
	To: p4ruby at perforce.com
	Subject: [p4ruby] p4ruby sync problem
	don't know if I make something wrong, but I have problems using
the p4 sync command within the p4ruby api.
	Here's my very little code example:
	require "P4"
	p4 = P4.new()
	p4.user = "myname"
	p4.port = "myport"
	This produces the following errors:
	/usr/local/lib/ruby/site_ruby/1.8/P4.rb:122:in `run': [P4#run]
Errors during command execution( "p4 sync" ) (P4Exception)
	        from /usr/local/lib/ruby/site_ruby/1.8/P4.rb:122:in
	        from /tmp/p4rubytest.rb:9
	But this only occurs if the client files are up-to-date! 
	If I run p4.run_sync("-f") it works fine, or even if there's one
or more files to sync.
	Do I'am something complete wrong, or is this a problem ?
	Joerg Krautwurst-Schmid
	CoCreate Software GmbH & Co. KG
	Posener Strasse 1
	71065 Sindelfingen
	Tel: +49 7031 951-2218
	Fax: +49 7031 951-6218
	E-mail: joerg_krautwurst-schmid at cocreate.com
<blocked::mailto:joerg_krautwurst-schmid at cocreate.com> 
	Website: <www.cocreate.com>

	Communicate right the first time and avoid misunderstandings.
	Find out more about our project team collaboration tool:
www.onespace.net <blocked::http://www.onespace.net/> 
	Court of registry: Boeblingen HRA 2391
	Directors: William M. Gascoigne (Chairman), Gert Deiss,
Hansjoerg Plaggemars 
	E-Mail Disclaimer
	Der Inhalt dieser E-Mail ist ausschliesslich fuer den
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene
Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten
Sie bitte, dass jede Form der Kenntnisnahme, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail unzulaessig
ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in
Verbindung zu setzen. 
	The information contained in this email is intended solely for
the addressee. Access to this email by anyone else is unauthorized. If
you are not the intended recipient, any form of disclosure,
reproduction, distribution or any action taken or refrained from in
reliance on it, is prohibited and may be unlawful. Please notify the
sender immediately. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/p4ruby/attachments/20050331/ab370a5a/attachment-0001.html>

More information about the p4ruby mailing list