Search in sources :

Example 1 with SVNMoveClient

use of org.tmatesoft.svn.core.wc.SVNMoveClient in project intellij-community by JetBrains.

the class SvnFileSystemListener method for16move.

private boolean for16move(SvnVcs vcs, final File src, final File dst, final boolean undo) throws VcsException {
    final SVNMoveClient mover = vcs.getSvnKitManager().createMoveClient();
    if (undo) {
        myUndoingMove = true;
        restoreFromUndoStorage(dst);
    } else if (doUsualMove(vcs, src))
        return true;
    new RepeatSvnActionThroughBusy() {

        @Override
        protected void executeImpl() throws VcsException {
            try {
                if (undo) {
                    mover.undoMove(src, dst);
                } else {
                    mover.doMove(src, dst);
                }
            } catch (SVNException e) {
                throw new SvnBindException(e);
            }
        }
    }.execute();
    return false;
}
Also used : SvnBindException(org.jetbrains.idea.svn.commandLine.SvnBindException) SVNMoveClient(org.tmatesoft.svn.core.wc.SVNMoveClient) SVNException(org.tmatesoft.svn.core.SVNException)

Aggregations

SvnBindException (org.jetbrains.idea.svn.commandLine.SvnBindException)1 SVNException (org.tmatesoft.svn.core.SVNException)1 SVNMoveClient (org.tmatesoft.svn.core.wc.SVNMoveClient)1