/*
* 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 Subversion repository.
*
* <b>TODO</b> The current implementation does <b>not</b> support nested
* repositories as described in http://svnbook.red-bean.com/en/1.0/ch07s03.html
*
* @author Trond Norbye
*/
/** The property name used to obtain the client command for this repository. */
/** The command to use to access the repository if none was given explicitly */
/** The system property name to obtain the subversion user configuration
* directory to use, i.e. the value for the svn option --config-dir. Gets
* ignored, if not set.
*/
/**
* Pointer to the repository path. Is {@code null} until
* {@link #setDirectoryName(String)} got called.
*/
/**
* Create a new instance of type {@code Subversion}.
*/
public SubversionRepository() {
type = "Subversion";
datePattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
}
return null;
}
while (n != null) {
}
n = n.getNextSibling();
}
}
/**
* {@inheritDoc}
*/
super.setDirectoryName(directoryName);
if (isWorking()) {
// set to true if we manage to find the root directory
}
try {
+ directoryName + "'. Assuming remote repository.");
setRemote(true);
} else {
setRemote(true);
}
}
}
} catch (SAXException saxe) {
+ saxe.getMessage());
} catch (ParserConfigurationException pce) {
+ pce.getMessage());
} catch (IOException ioe) {
+ ioe.getMessage());
}
} else {
+ directoryName + "'. Repository disabled.");
}
}
}
/**
* 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)
* @param sinceRevision the revision number immediately preceding the first
* revision we want, or {@code null} to fetch the entire history
* @return An Executor ready to be started
*/
}
}
if (sinceRevision != null) {
// We would like to use sinceRevision+1 here, but if no new
// revisions have been added after sinceRevision, it would fail
// because there is no such revision as sinceRevision+1. Instead,
// fetch the unneeded revision and remove it later.
}
}
/**
* {@inheritDoc}
*/
{
}
}
return ret;
}
/**
* {@inheritDoc}
*/
public boolean hasHistoryForDirectories() {
return true;
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
throws HistoryException
{
}
return name;
}
return name + "@";
}
sb = new StringBuilder();
}
{
}
}
}
}
}
}
/**
* {@inheritDoc}
*/
try {
throw new IOException("Failed to create SAX parser ("
}
}
}
try {
try {
} catch (Exception e) {
+ e.getMessage());
}
} finally {
try {
} catch (IllegalThreadStateException e) {
// 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
// SVN repo has history. If there is a cheap test, then this
// code can be refined, boosting performance.
return true;
}
/**
* {@inheritDoc}
*/
}
}
}
/**
* {@inheritDoc}
*/
if (file.isDirectory()) {
return f.exists() && f.isDirectory();
}
return false;
}
/**
* {@inheritDoc}
*/
public boolean isWorking() {
} else {
}
}
return working.booleanValue();
}
}