index.js
function( url, dir, options, callback ) {
	if ( typeof options === 'function' ) {
		callback = options;
		options = null;
	}
	options = options || {};
	addExtraOptions( [ 'force', 'quiet', 'revision', 'depth', 'ignoreExternals' ], options );
	
	var dirPath = dir;
	if(typeof options.cwd !== 'undefined')
	   dirPath = path.resolve(options.cwd, dir);
	if ( !fs.existsSync( dirPath ) ) {
		fs.mkdirsSync( dirPath );
	}
	executeSvn( [ 'checkout', url, dir ], options, callback );
}
function( url, dir, options, callback ) {
	if ( typeof options === 'function' ) {
		callback = options;
		options = null;
	}
	options = options || {};
	addExtraOptions( [ 'force', 'quiet', 'revision', 'depth', 'ignoreExternals' ], options );
	
	var dirPath = dir;
	if(typeof options.cwd !== 'undefined')
	   dirPath = path.resolve(options.cwd, dir);
	if ( !fs.existsSync( dirPath ) ) {
		fs.mkdirsSync( dirPath );
	}
	executeSvn( [ 'checkout', url, dir ], options, callback );
}
function ( url , dir , options , callback ) { if ( typeof options === 'function' ) { callback = options ; options = null ; } options = options || { } ; addExtraOptions ( [ 'force' , 'quiet' , 'revision' , 'depth' , 'ignoreExternals' ] , options ) ; var dirPath = dir ; if ( typeof options . cwd !== 'undefined' ) dirPath = path . resolve ( options . cwd , dir ) ; if ( ! fs . existsSync ( dirPath ) ) { fs . mkdirsSync ( dirPath ) ; } executeSvn ( [ 'checkout' , url , dir ] , options , callback ) ; }
Checks out a repository to a working copy
@function checkout
@memberof commands
@param {string} url - Repository URL
@param {string} dir - Working copy dir
@param {object} [options] - Options object
@param {function} [callback] - Complete callback
@alias co
Checks out a repository to a working copy