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

RE: [Subclipse-users] svnant-1.1.0-RC2 / issue when using export

From: Julien Nitard <julien.nitard_at_streamezzo.com>
Date: Fri, 29 Feb 2008 14:27:40 +0100

Hi Mark,

>This was fixed a long time ago, there just have not been any new
>svnAnt releases made. The bug was discovered originally by Subclipse
>users and the fix was in svnClientAdapter, which both svnAnt and
>Subclipse use. You can get the fix by just grabbing a new version of
>the svnClientAdapter JAR.

I tried both to get that jar file and even to build my own from the latest version in the repository, but I can't see any difference. The command line adapter will still ask for an export of HEAD, implying server accesses, while the expected behavior would be (I think) to export the working copy, as mentioned in the javadoc for ISVNClientAdapter.doExport:

         * Exports a clean directory tree from the working copy specified by
         * PATH1 into PATH2. all local changes will be preserved, but files
         * not under revision control will not be copied.

Hence the patch I submitted earlier, which was wrong since it was exporting BASE and not WORKING, but was closer to the expected behavior. I changed it to :

CmdLineClientAdapter.java - L938:
_cmd.export(toString(srcPath), toString(destPath), SVNRevision.WORKING.toString() , force);

I am working with svn cmd line client 1.4.5 and latest revision of svnclientadapter.

I hope that I was clear and that I didn't miss something in the mean time (like didn't check out the right revision or something).

By the way, I have been working on another small patch, on svnant this time. If you ask for status info on a directory, it will return "normal" even if some children have been modified. The command line client won't give a clear status for a directory, it will only list the statuses of the children files, but tortoise would mark that directory as modified. I think the later behavior is the expected one for that command, so I wrote a small hack that will check if the requested file is a directory and will ask for a status on all the children in that case. If one of the children is not "unversioned" or "normal", I set the textStatusProperty to "modified". I can submit it if someone has any interest in it.

Thank you very much for your time,

Julien

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-02-29 14:29:03 CET

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

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