public abstract Commit ( FilePath paths, string message, IProgressMonitor monitor ) : void | ||
paths | FilePath | |
message | string | |
monitor | IProgressMonitor | |
return | void |
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)); }