Interface IUndoDelegator


  • public interface IUndoDelegator
    • Method Detail

      • undoFiles

        java.util.List<IFileSpec> undoFiles​(java.util.List<IFileSpec> fileSpecs,
                                            int changelistId,
                                            boolean listOnly)
                                     throws ConnectionException,
                                            RequestException,
                                            AccessException
        Undo one or more previously submitted files. The 'undone' changes remain a part of the history, but the new revisions submitted after 'p4 undo' will reverse their effect.

        If a single revision is specified, the specified revision is undone. If a revision range is specified, the entire range is undone.

        Parameters:
        fileSpecs - if non-empty, undo the specified files; otherwise undo all qualifying files
        changelistId - - 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 performed
        Returns:
        list of IFileSpec objects representing the results of this undo
        Throws:
        ConnectionException - - if the Perforce server is unreachable or is not connected.
        RequestException - – if the Perforce server encounters an error during its processing of the request
        AccessException - – if the Perforce server denies access to the caller
      • undoFiles

        java.util.List<IFileSpec> undoFiles​(java.util.List<IFileSpec> fileSpecs,
                                            UndoFilesOptions opts)
                                     throws P4JavaException
        Undo one or more previously submitted files. The 'undone' changes remain a part of the history, but the new revisions submitted after 'p4 undo' will reverse their effect.

        If a single revision is specified, the specified revision is undone. If a revision range is specified, the entire range is undone.

        Parameters:
        fileSpecs - if non-empty, undo the specified files; otherwise undo all qualifying files
        opts - possibly-null UndoFilesOptions object object specifying method options.
        Returns:
        non-null but possibly-empty list of qualifying files to undo. Not all fields in individual file specs will be valid or make sense to be accessed.
        Throws:
        P4JavaException - if an error occurs processing this method and its parameters.