Alexander,

I use now the 1.3.7 SVNkit version.

My export does'nt failed anymore but I still have issues.

1) Even if i remove a directory in my working copy, the result of the export
contain this removed directory ?
2) if i set an handler before launching doExport, my handler is never
called.

See my test using all possible couple of pegrevision/revision below :

cm.setEventHandler(new ISVNEventHandler() {

            public void handleEvent(SVNEvent event, double progress) throws
SVNException {

                if (null != event) {
                    System.out.print(event);
                    File f = event.getFile();
                    if (null != f) {
                      System.out.println(" "+f.getAbsolutePath());
                    }else {
                         System.out.println();
                 }
                }                
            }

            public void checkCancelled() throws SVNCancelException {
               
            }
        });

        SVNRevision revisions[] = {SVNRevision.HEAD, SVNRevision.WORKING,
SVNRevision.PREVIOUS, SVNRevision.BASE, SVNRevision.COMMITTED,
SVNRevision.UNDEFINED};
        try {
            for (SVNRevision r1 : revisions) {
                for (SVNRevision r2 : revisions) {
                    String fromPath = "/home/tophe/WORKING/MYTEST";
                    String toPath = "/home/tophe/EXPORT/MYTEST_" + r1 + "_"
+ r2;
                    System.out.println("Trying " + fromPath + "->" +
toPath);
                    try {
                        cm.getUpdateClient().doExport(new File(fromPath),
new File(toPath), r1, r2, null, true, SVNDepth.INFINITY);
                    } catch (SVNException ex) {
                        //e.printStackTrace();
                        System.err.println(ex.getMessage());
                    }
                    System.out.println("--------------------------------");
                }
            }

        } catch (Exception e) {
            //e.printStackTrace();
            System.err.println(e.getMessage());
        }

  THANKS for your help

  Christophe





tophi wrote:
> 
> 
> Alexender,
> 
> Thanks for the answer.
> 
> I will wait for the fix.
> 
> If you need I test something don't hesitate to contact me.
> 
>   Christophe
> 
> 
> 
> 
> AlexanderKitaev wrote:
>> 
>> Hello Christophe,
>> 
>> Looking at the code I see that export from a working copy will fail in
>> case directory is missing in the source.
>> 
>> So you should either export directories you need explicitly, or export
>> all and then delete directories you do not need.
>> 
>> This export failure looks like a bug, we'll fix it for the next version.
>> 
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://hg4j.com/ - Java Mercurial Library!
>> http://sqljet.com/ - Java SQLite Library!
>> 
>> 
>> 
>> On 21 November 2011 22:34, tophi <[email protected]> wrote:
>>>
>>>
>>> Hi all,
>>>
>>> I'm trying to export from a worging copy using :
>>> cm.getUpdateClient().doExport(new File(fromPath), new File(toPath),
>>> SVNRevision.WORKING, SVNRevision.WORKING, null, true,
>>> SVNDepth.INFINITY);
>>>
>>> Where cm is a ClientManager instance, fromPath the path to my working
>>> copy
>>> and toPath destination path for the export.
>>>
>>> If I remove something from my Working copy I have this kind of error
>>> message
>>> (I have removed src directory from my WC sample before exporting) :
>>> svn: 'E:\WORKING\sample\src\Output' is not a working copy
>>>
>>> I suppose I' missed something !
>>>
>>> Any help will be appreciate.
>>>
>>>  Christophe
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Export-from-a-working-copy-...-tp32871403p32871403.html
>>> Sent from the SVNKit - Users mailing list archive at Nabble.com.
>>>
>>>
>>>
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Export-from-a-working-copy-...-tp32871403p32982254.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.


Reply via email to