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

Re: Problems checking out using javahl

From: Patrick Mayweg <mayweg_at_qint.de>
Date: 2004-07-02 07:24:06 CEST

Hi Thomas,
subversion@smartcvs.com wrote:

> Hi,
>
> I've trying to use javahl, but the checkout seems not to work as
> expected (C:\temp exists, I've also tried it with parameter "new
> Revision(-1)"). Any help is appreciated.

I cannot reproduce this problem. What version of subversion do you use?
If you use the trunk, please specify the revision number.

The result of "new Revision(-1)" is not defined. I will throw an error
in the future in this case.

If you want to specify a revision number us "new Revision.Number(n)" or
if you want to the specify the newest revision, use "Revision.HEAD". A
null revision is mapped to Revision:HEAD internally in the checkout method.

>
> ==================================================
> public static void main(String[] args) {
> final SVNClient client = new SVNClient();
> try {
> final long result = client.checkout("svn://localhost/test",
> "C:\\temp", null, true);
> System.out.println("result = " + result);
>
> list(client);
> }
> catch (ClientException ex) {
> ex.printStackTrace();
> }
> finally {
> client.dispose();
> }
> }
>
> private static void list(SVNClient client) throws ClientException {
> final DirEntry[] entries = client.list("svn://localhost", null,
> true);
> for (int i = 0; i < entries.length; i++) {
> final DirEntry entry = entries[i];
> System.out.println(entry.getPath() + ":" +
> entry.getLastChangedRevision());
> }
> }
> ==================================================
> Prints just:
> result = -1
> test:1
> test/classes:1
> test/src:1
>
> --
> Best regards,
> Thomas Singer
> _____________
> smartcvs.com

Patrick Mayweg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 2 07:25:06 2004

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

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