Using "rlog"
Timo Fleischfresser <[email protected]> Thu, 21 Dec 2006 17:39:25 +0000 (UTC)
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I would like to check out CVS-Logs with the rlog-command. I used the following
code to do so
...
try{
CVSRoot root = CVSRoot.parse
(":pserver:[email protected]:/sfhome/cvs/dillo");
GlobalOptions globalOptions = new GlobalOptions();
globalOptions.setCVSRoot
(":pserver:[email protected]:/sfhome/cvs/dillo");
PServerConnection c = new PServerConnection(root);
c.open();
Client client = new Client(c, new StandardAdminHandler());
client.setLocalPath(".");
client.getEventManager().addCVSListener(new BasicListener());
RlogCommand command = new RlogCommand();
command.setModule("dillo");
//command.setHeaderOnly(true);
command.setRecursive(true);
client.executeCommand(command,globalOptions);
}catch(AuthenticationException e) {System.out.println(e.getMessage());}
catch(CommandAbortedException e1) {System.out.println(e1.getMessage());}
catch(CommandException e2) {System.out.println(e2.getMessage());}
...
If I set "command.setHeaderOnly(true)", it works fine, but I don't get the Log-
Messages. If I don't set the option, I only get the Log-Header of the first
RCS file followed by the error message "String index out of range: 0". Can
anyone help me out
Thanks
Timo