public interface IUndoDelegator
Modifier and Type | Method and Description |
---|---|
java.util.List<IFileSpec> |
undoFiles(java.util.List<IFileSpec> fileSpecs,
int changelistId,
boolean listOnly)
Undo one or more previously submitted files.
|
java.util.List<IFileSpec> |
undoFiles(java.util.List<IFileSpec> fileSpecs,
UndoFilesOptions opts)
Undo one or more previously submitted files.
|
java.util.List<IFileSpec> undoFiles(java.util.List<IFileSpec> fileSpecs, int changelistId, boolean listOnly) throws ConnectionException, RequestException, AccessException
If a single revision is specified, the specified revision is undone. If a revision range is specified, the entire range is undone.
fileSpecs
- if non-empty, undo the specified files;
otherwise undo all qualifying fileschangelistId
- - if not IChangelist.UNKNOWN, the files are opened
in the numbered pending changelist instead of the
'default' changelist.listOnly
- – if true, don't actually perform the move, just
return what would happen if the move was performedConnectionException
- - if the Perforce server is unreachable or
is not connected.RequestException
- – if the Perforce server encounters an error
during its processing of the requestAccessException
- – if the Perforce server denies access to the
callerjava.util.List<IFileSpec> undoFiles(java.util.List<IFileSpec> fileSpecs, UndoFilesOptions opts) throws P4JavaException
If a single revision is specified, the specified revision is undone. If a revision range is specified, the entire range is undone.
fileSpecs
- if non-empty, undo the specified files;
otherwise undo all qualifying filesopts
- possibly-null UndoFilesOptions object object specifying
method options.P4JavaException
- if an error occurs processing this method and its
parameters.