/*
* 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
*/
/*
*/
/**
* Parse source history for a Subversion Repository
*
* @author Trond Norbye
*/
final int length;
sb = new StringBuilder();
}
entry = new HistoryEntry();
}
}
try {
} catch (ParseException ex) {
}
if (s.startsWith(prefix)) {
// The same file names may be repeated in many commits,
// so intern them to reduce the memory footprint.
// Bug #15956: Don't use String.intern(), since that may
// exhaust the permgen space. Instead, use our own
// interner that allocates space on the heap.
} else {
}
entry.setMessage(s);
}
}
}
}
/**
* Initialize the SAX parser instance.
*/
try {
}
}
/**
* Parse the history for the specified file.
*
* @param file the file to parse history for
* @param repos Pointer to the SubversionReporitory
* @param sinceRevision the revision number immediately preceding the first
* revision we want, or {@code null} to fetch the entire history
* @return object representing the file's history
*/
throws HistoryException {
repos.getDateFormat());
if (status != 0) {
throw new HistoryException("Failed to get history for '" +
}
// If we only fetch parts of the history, we're not interested in
// sinceRevision. Remove it.
if (sinceRevision != null) {
}
}
/**
* Process the output from the log command and insert the HistoryEntries
* into the history field.
*
* @param input The output from the process
*/
try {
} catch (Exception e) {
+ e.getMessage());
}
}
/**
* Parse the given string.
*
* @param buffer The string to be parsed
* @return The parsed history
* @throws IOException if we fail to parse the buffer
*/
}
}