823N/A * The contents of this file are subject to the terms of the 823N/A * Common Development and Distribution License (the "License"). 823N/A * You may not use this file except in compliance with the License. 823N/A * language governing permissions and limitations under the License. 823N/A * When distributing Covered Code, include this CDDL HEADER in each 823N/A * If applicable, add the following below this CDDL HEADER, with the 823N/A * fields enclosed by brackets "[]" replaced with your own identifying 823N/A * information: Portions Copyright [yyyy] [name of copyright owner] 823N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 823N/A * Use is subject to license terms. 823N/A * Class used to parse the history log from Monotone 823N/A * Parse the history for the specified file or directory. If a changeset is 823N/A * specified, only return the history from the changeset right after the 823N/A * @param file the file or directory to get history for 823N/A * @param changeset the changeset right before the first one to fetch, or 823N/A * {@code null} if all changesets should be fetched 823N/A * @return history for the specified file or directory 823N/A * @throws HistoryException if an error happens when parsing the history 823N/A * Process the output from the hg log command and insert the HistoryEntries 823N/A * into the history field. 823N/A * @param input The output from the process 823N/A * @throws java.io.IOException If an error occurs while reading the stream 1380N/A // Later versions of monotone (such as 1.0) output even more dashes so lets require 1380N/A // the minimum amount for maximum compatibility between monotone versions. 1380N/A if (s.
startsWith(
"-----------------------------------------------------------------")) {
1016N/A // If the file is not located under the source root, ignore it