public class FileLogDelegator extends BaseDelegator implements IFileLogDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
FileLogDelegator(IOptionsServer server)
Instantiate a new FileDelegator, providing the server object that will be used to
execute Perforce Helix attribute commands.
|
| Modifier and Type | Method and Description |
|---|---|
Map<IFileSpec,List<IFileRevisionData>> |
getRevisionHistory(List<IFileSpec> fileSpecs,
GetRevisionHistoryOptions opts)
Get the revision history data for one or more Perforce files.
|
Map<IFileSpec,List<IFileRevisionData>> |
getRevisionHistory(List<IFileSpec> fileSpecs,
int maxRevs,
boolean contentHistory,
boolean includeInherited,
boolean longOutput,
boolean truncatedLongOutput)
Get the revision history data for one or more Perforce files.
|
public FileLogDelegator(IOptionsServer server)
server - a concrete implementation of a Perforce Helix Serverpublic Map<IFileSpec,List<IFileRevisionData>> getRevisionHistory(List<IFileSpec> fileSpecs, int maxRevs, boolean contentHistory, boolean includeInherited, boolean longOutput, boolean truncatedLongOutput) throws ConnectionException, AccessException
IFileLogDelegatorgetRevisionHistory in interface IFileLogDelegatorfileSpecs - fileSpecs to be processed; if null or empty, an empty Map is
returned.maxRevs - If positive, displays at most 'maxRevs' revisions per file of the
file[rev] argument specified. Corresponds to -m.contentHistory - If true, display file content history instead of file name
history. Corresponds to -h.includeInherited - If true, causes inherited file history to be displayed as well.
Corresponds to -i.longOutput - If true, produces long output with the full text of the changelist
descriptions. Corresponds to -l.truncatedLongOutput - If true, produces long output with the full text of the changelist
descriptions truncated to 250 characters. Corresponds to -L.ConnectionExceptionAccessExceptionpublic Map<IFileSpec,List<IFileRevisionData>> getRevisionHistory(List<IFileSpec> fileSpecs, GetRevisionHistoryOptions opts) throws P4JavaException
IFileLogDelegatorgetRevisionHistory in interface IFileLogDelegatorfileSpecs - fileSpecs to be processed; if null or empty, an empty Map is returned.opts - GetRevisionHistoryOptions object describing optional parameters; if null, no
options are set.P4JavaException - if any error occurs in the processing of this method.Copyright © 2017 Perforce Software. All Rights Reserved.