Re: rlog

Petr Kuzel <[email protected]> Tue, 21 Feb 2006 18:19:52 +0100
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
Chris Eldredge wrote:

> Can anyone tell me if rlog works without a local copy?  The following 
> test code seems to be a no-op.  It doesn't throw any

 From code it does not.

> exceptions, and whats worse is I get a warning message "Please be 
> warned that attempting to reuse one open connection for more commands 
> is not supported by cvs servers very well."  How am I reusing the 
> connection?
>
>         Client c = new Client(cvs.conn, new StandardAdminHandler());


Is not cvs.conn reused?

>        
>         c.setLocalPath(".");
>        
>         final GlobalOptions globalOptions = new GlobalOptions();
>        
>         final RlogCommand command = new RlogCommand();
>        
>         command.setHeaderOnly(true);
>         command.setModule(projectConfig.getModule());
>         command.setRecursive(true);
>         command.setRevisionFilter("HEAD");
>
>         c.getEventManager().addCVSListener(new BasicListener() {
>             @Override
>             public void fileInfoGenerated(FileInfoEvent arg0) {
>                 throw new RuntimeException();
>             }
>         });
>        
>         c.executeCommand(command, globalOptions);
>
  Cc.