public static void revertAll ( File directory ) throws IOException { log . info ( "Reverting SVN Working copy at " + directory ) ; CommandLine cmdLine = new CommandLine ( SVN_CMD ) ; cmdLine . addArgument ( CMD_REVERT ) ; addDefaultArguments ( cmdLine , null , null ) ; cmdLine . addArgument ( OPT_DEPTH ) ; cmdLine . addArgument ( INFINITY ) ; cmdLine . addArgument ( directory . getAbsolutePath ( ) ) ; try ( InputStream result = ExecutionHelper . getCommandResult ( cmdLine , directory , 0 , 120000 ) ) { log . info ( "Svn-RevertAll reported:\n" + extractResult ( result ) ) ; } }
Revert all changes pending in the given SVN Working Copy .