rlog

Chris Eldredge <[email protected]> Tue, 21 Feb 2006 09:40:50 -0500
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
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 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());
		
		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);