package com.perforce.p4java_ext; import com.perforce.p4java.exception.P4JavaException; import com.perforce.p4java.server.IOptionsServer; import java.util.Map; /** * Access to the "p4 revert" command */ public interface P4Revert extends P4ClientConnection, P4Errors { static P4Revert create(P4ClientConnection conn) { return new DefaultP4Revert(conn); } /** * Runs "p4 revert -c [changelist] //..." * * @param changelist Changelist ID */ default void revertAll(String changelist) { try { String[] opts = new String[]{"-c", changelist, "//..."}; IOptionsServer server = getOptionsServer(); Map<String, Object>[] results = server.execMapCmd("revert", opts, null); checkError(results); } catch (P4JavaException p4) { throw new P4Exception(p4); } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 9086 | tjuricek |
0.1.0 Initial release of p4java_ext Mostly just contains enough of the P4 API to build the test data initializer. About 4 commands have minimal testing, so it works. Kind of. |
||
#1 | 9085 | tjuricek | First import of the project, before package refactoring. |