Checkout() public abstract method

public abstract Checkout ( string url, FilePath path, Revision rev, bool recurse, IProgressMonitor monitor ) : void
url string
path FilePath
rev Revision
recurse bool
monitor IProgressMonitor
return void
コード例 #1
0
        protected override Repository OnPublish(string serverPath, FilePath localPath, FilePath[] files, string message, IProgressMonitor monitor)
        {
            string url = Url;

            if (!serverPath.StartsWith("/") && !url.EndsWith("/"))
            {
                url += "/";
            }
            url += serverPath;

            string[] paths = new string[] { url };

            CreateDirectory(paths, message, monitor);
            Svn.Checkout(this.Url + "/" + serverPath, localPath, null, true, monitor);

            rootPath = localPath;
            Set <FilePath> dirs = new Set <FilePath> ();

            PublishDir(dirs, localPath, false, monitor);

            foreach (FilePath file in files)
            {
                PublishDir(dirs, file.ParentDirectory, true, monitor);
                Add(file, false, monitor);
            }

            Svn.Commit(new FilePath[] { localPath }, message, monitor);

            return(new SubversionRepository(VersionControlSystem, paths[0], localPath));
        }