/*
* 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 Bazaar repository.
*/
/** The property name used to obtain the client command for thisrepository. */
/** The command to use to access the repository if none was given explicitly */
/**
* Create a new instance of type {@code Bazaar}.
*/
public BazaarRepository() {
type = "Bazaar";
datePattern = "EEE yyyy-MM-dd hh:mm:ss ZZZZ";
}
/**
* 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
*/
throws IOException
{
}
if (file.isDirectory()) {
}
if (sinceRevision != null) {
}
}
/**
* {@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;
}
/**
*
* @param file file to annotate
* @param revision revision to annotate
* @return file annotation
*/
}
if (status != 0) {
}
}
throws IOException
{
int lineno = 0;
++lineno;
} else {
"Did not find annotation in line {0} [{1}]",
}
}
return ret;
}
/**
* {@inheritDoc}
*/
return true;
}
/**
* {@inheritDoc}
*/
}
}
}
}
/**
* {@inheritDoc}
*/
// Todo: is there a cheap test for whether Bazaar has history
// available for a file?
// Otherwise, this is harmless, since Bazaar's commands will just
// print nothing if there is no history.
return true;
}
/**
* {@inheritDoc}
*/
if (file.isDirectory()) {
return f.exists() && f.isDirectory();
}
return false;
}
/**
* {@inheritDoc}
*/
public boolean isWorking() {
}
return working.booleanValue();
}
/**
* {@inheritDoc}
*/
public boolean hasHistoryForDirectories() {
return true;
}
/**
* {@inheritDoc}
*/
throws HistoryException
{
}
/**
* {@inheritDoc}
*/
}
}