/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/**
* Access to a local CVS repository.
*/
/** The property name used to obtain the client command for repository. */
/** The command to use to access the repository if none was given explicitly */
/**
* Create a new instance of type {@code CVS}.
*/
public CVSRepository() {
type = "CVS";
datePattern = "yyyy-MM-dd hh:mm:ss";
}
/**
* {@inheritDoc}
*/
public boolean isWorking() {
}
return working.booleanValue();
}
/**
* {@inheritDoc}
*/
return cvsFile;
}
return null;
}
/**
* {@inheritDoc}
*/
if (file.isDirectory()) {
return cvsDir.isDirectory();
}
return false;
}
/**
* {@inheritDoc}
*/
}
}
/**
* Get an executor to be used for retrieving the history log for the
* named file.
*
* @param file The file to retrieve history for (canonical path incl. source
* root).
* @return An Executor ready to be started
*/
}
try {
@SuppressWarnings("resource")
try {
}
} finally {
}
} catch (IOException ex) {
}
} else {
}
}
{
//just generate THIS branch history, we don't care about the other
// branches which are not checked out
}
}
}
/**
* {@inheritDoc}
*/
@SuppressWarnings("resource")
{
}
try {
int len;
if (len > 0) {
}
}
} finally {
// Clean up zombie-processes...
try {
} catch (IllegalThreadStateException exp) {
// the process is still running??? just kill it..
}
}
}
return ret;
}
/**
* {@inheritDoc}
*/
return true;
}
/**
* {@inheritDoc}
*/
// @TODO: Research how to cheaply test if a file in a given
// CVS repo has history. If there is a cheap test, then this
// code can be refined, boosting performance.
return true;
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
}
if (status != 0) {
}
}
/**
* Read the given input and create an annotation from its content.
* @param input data to read
* @param fileName the name of the associated file.
* @return a annotation which may or may not have the required information.
* @throws IOException
*/
@SuppressWarnings("static-method")
throws IOException
{
int lineno = 0;
boolean hasStarted = false;
// Skip header
{
continue;
}
hasStarted = true;
// Start parsing
++lineno;
} else {
}
}
return ret;
}
}