[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-dev] Messages on stderr

From: Thomas Hallgren <thomas_at_tada.se>
Date: 2007-05-07 13:07:45 CEST

I upgraded to Subclipse 1.2.1 yesterday. Now, whenever I check for the
existence of certain files in a remote repository, I get error messages
printed on my console:

    Filesystem has no item
svn: File not found: revision 939, path
'/org.eclipse.buckminster/trunk/org.eclipse.buckminster.jnlp/buckminster.cspex'

The message is in itself correct. It's just that this is part of the
normal discovery that Buckminster does and I do not want these messages
to be printed.

My code obtains an ISVNClientAdapter and does the following.

First i obtain an InputSTream using the getContent(SVNUrl, SVNRevision)
method (this is when the message is printed)
If I have more then zero bytes (the normal case), then I use that
immediately.
If I get zero bytes when reading, I do a getDirEntry(SVNUrl,
SVNRevision) on the same file. If that returns null, I conclude that the
file does not exist.

My objective is get the content of some specific files (into memory
only, I don't want to check them out) and rule out non-existent files
with as few calls as possible (or rather, as fast as possible). So, two
questions:

1. Is this the best way to do it?
2. How do I avoid that messages are printed?

TIA,

Thomas Hallgren

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org
Received on Mon May 7 13:08:52 2007

This is an archived mail posted to the Subclipse Dev mailing list.