250N/A * The contents of this file are subject to the terms of the 250N/A * Common Development and Distribution License (the "License"). 250N/A * You may not use this file except in compliance with the License. 250N/A * language governing permissions and limitations under the License. 250N/A * When distributing Covered Code, include this CDDL HEADER in each 250N/A * If applicable, add the following below this CDDL HEADER, with the 250N/A * fields enclosed by brackets "[]" replaced with your own identifying 250N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1285N/A * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. 250N/A * Parse a stream of Bazaar log comments. 837N/A // If a changeset to start from is specified, remove that changeset 837N/A // from the list, since only the ones following it should be returned. 837N/A // Also check that the specified changeset was found, otherwise throw 1470N/A "------------------------------------------------------------";
626N/A * Process the output from the log command and insert the HistoryEntries 626N/A * into the history field. 626N/A * @param input The output from the process 626N/A * @throws java.io.IOException If an error occurs while reading the stream 1285N/A // First, go on until revno is found. 1285N/A // Then, look for committer. 1285N/A // And then, look for timestamp. 1285N/A // Expect the commit message to follow immediately after 1285N/A // the timestamp, and that everything up to the list of 1285N/A // modified, added and removed files is part of the commit 1285N/A // Commit messages returned by bzr log -v are prefixed 1285N/A // Finally, store the list of modified, added and removed 1285N/A // files. (Except the labels.) 1285N/A // The list of files is prefixed with blanks. 626N/A * Parse the given string. 626N/A * @param buffer The string to be parsed 626N/A * @return The parsed history 626N/A * @throws IOException if we fail to parse the buffer