0N/A * The contents of this file are subject to the terms of the 0N/A * Common Development and Distribution License (the "License"). 0N/A * You may not use this file except in compliance with the License. 0N/A * language governing permissions and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL HEADER in each 0N/A * If applicable, add the following below this CDDL HEADER, with the 0N/A * fields enclosed by brackets "[]" replaced with your own identifying 0N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1072N/A * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 182N/A * Parse source history for a Subversion Repository 0N/A * @author Trond Norbye 1015N/A // The same file names may be repeated in many commits, 1015N/A // so intern them to reduce the memory footprint. 1015N/A // Bug #15956: Don't use String.intern(), since that may 1015N/A // exhaust the permgen space. Instead, use our own 1015N/A // interner that allocates space on the heap. 628N/A * Initialize the SAX parser instance. 628N/A * Parse the history for the specified file. 628N/A * @param file the file to parse history for 628N/A * @param repos Pointer to the SubversionReporitory 784N/A * @param sinceRevision the revision number immediately preceding the first 784N/A * revision we want, or {@code null} to fetch the entire history 628N/A * @return object representing the file's history 784N/A // If we only fetch parts of the history, we're not interested in 784N/A // sinceRevision. Remove it. 628N/A * Process the output from the log command and insert the HistoryEntries 628N/A * into the history field. 628N/A * @param input The output from the process 628N/A * Parse the given string. 628N/A * @param buffer The string to be parsed 628N/A * @return The parsed history 628N/A * @throws IOException if we fail to parse the buffer