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

Re: list changed files in javahl

From: Mark Phippard <MarkP_at_softlanding.com>
Date: 2005-09-13 15:49:34 CEST

Joakim Recht <recht@aub.aau.dk> wrote on 09/13/2005 03:37:43 AM:

> I'm trying to get a list of changed files for a revision using the
> javahl bindings, but something is going wrong.
>
> I do something like this:
>
> SVNClient client = new SVNClient();
> LogMessage[] m = client.logMessages("file:///data/SVN/repos",
> Revision.HEAD, Revision.HEAD);
> System.out.println(m.length); // some actually do get out here
> System.out.println(m[0].getMessage()); // also correct
> System.out.println(m[0].getChangedFiles()); // null
>
> In other words, getChangedFiled() always returns null.
>
> I've tried with SubVersion 1.2.0 and 1.2.3, and they both behave in
> exactly the same way.
>
> Am I doing something wrong, or does javahl have a bug somewhere?

I do not think you are calling the right logMessages method. Try using
one of the methods that has the discoverPaths boolean and set it to true.
Also, the method to call is getChangedPaths() not getChangedFiles(), but I
assume that was just a typo.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 13 15:53:26 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.