/**
* This file is part of git-as-svn. It is subject to the license terms
* in the LICENSE file found in the top-level directory of this distribution
* and at http://www.gnu.org/licenses/gpl-2.0.html. No part of git-as-svn,
* including this file, may be copied, modified, propagated, or distributed
* except according to the terms contained in the LICENSE file.
*/
package svnserver.server.command;
import org.jetbrains.annotations.NotNull;
import org.tmatesoft.svn.core.SVNException;
import svnserver.repository.Depth;
import svnserver.repository.SendCopyFrom;
/**
* <pre>
* switch
* params: ( [ rev:number ] target:string recurse:bool url:string
* ? depth:word ? send_copyfrom_args:bool ignore_ancestry:bool )
* Client switches to report command set.
* Upon finish-report, server sends auth-request.
* After auth exchange completes, server switches to editor command set.
* After edit completes, server sends response.
* response: ( )
* </pre>
* <p>
*
* @author Marat Radchenko <marat@slonopotamus.org>
*/
public final class SwitchParams extends DeltaParams {
public SwitchParams(
@NotNull int[] rev,
@NotNull String target,
boolean recurse,
@NotNull String url,
@NotNull String depth,
boolean sendCopyFromArgs,
boolean ignoreAncestry
) throws SVNException {
super(rev, target, url, true, Depth.parse(depth, recurse, Depth.Files), sendCopyFromArgs ? SendCopyFrom.Always : SendCopyFrom.Never, ignoreAncestry, true);
}
}