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;
}
Aggregations