Re: [Subclipse-users] svnClientAdapter - Determining if a Directory Needs Updates
On 3/9/07, Zack Grossbart <firstname.lastname@example.org> wrote:
> This is an svnClientAdapter question.
> I am trying to programmatically determine if files and folders have
> available on the Subversion server svnClientAdapter. When I am handling
> individual file I can compare the last changed revision of the ISVNInfo
> from the server to the revision of the ISVNStatus of the local file. If
> server info has a greater revision number than the local file then there
> updates available.
> However, I'm having more of a problem with directories. When I look at
> revision of the ISVNStatus object for a directory it is always less than
> revision of the ISVNInfo object from the server. The last changed
> revision for
> directories appears to be associated with the last changed revision of the
> oldest file in that directory. It sort of feels like I'm missing
> something and
> there should be a better way to do this. Am I doing this the best way
> Is there something better I should be doing?
You should just run the status API with the contact server option. It will
only return items that are out of date. Subversion will do the work for
you. You cannot really rely on the revision info and doing it yourself
because the Subversion API's do not return the correct information.
Received on Fri Mar 9 22:06:47 2007
This is an archived mail posted to the Subclipse Users