/*
* 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 AccuRev Repository
*
* @author Steven Haehn
*/
private boolean foundHistory;
/**
* Parse the history for the specified file.
*
* @param file the file to parse history for
* @param repos Pointer to the {@code AccuRevRepository}
* @return object representing the file's history
* @throws HistoryException if a problem occurs while executing p4 command
*/
foundHistory = false;
/*
* When the path given is really just the root to the source
* workarea, no history is available, create fake.
*/
} else {
try {
/*
* Errors will be logged, so not bothering to add to the output.
*/
/*
* Try again because there was no 'keep' history.
*/
if (!foundHistory) {
}
} catch (IOException e) {
throw new HistoryException(
"Failed to get history for: \""
}
}
return history;
}
/*
* Accurev history of an element (directory or file) looks like:
*
* 2012/02/28 12:46:55 ; user: tluksha version 2541/1 (2539/1)
*
* transaction 1476285; purge; 2012/02/03 12:16:25 ; user: shaehn
* version 4241/1 (4241/1)
*
* transaction 1317224; promote; 2011/05/03 11:37:56 ; user: mtrinh #
* changes to ngb to compile on windows version 13/93 (1000/2)
*
* ...
*
* What is of interest then is: user (author), version (revision), date,
* comment (message)
*
* Any lines not recognized are ignored.
*/
continue;
} // ignore element, eid
entry = new HistoryEntry();
foundHistory = true;
try {
} catch (ParseException pe) {
}
}
}
}
}