public void SetDate(DateTime date) { //2008-10-22T04:50:56.056632Z string dateString = date.AddHours(_utcOffset).ToString("s") + ".000000Z"; _repositoryClient.SetRevisionProperty(_filePath, _revision, "svn:date", dateString); }
public void CreateBdbRepos() { SvnSandBox sbox = new SvnSandBox(this); string path = sbox.GetTempDir(); SvnRepositoryClient reposClient = new SvnRepositoryClient(); SvnCreateRepositoryArgs ra = new SvnCreateRepositoryArgs(); ra.RepositoryType = SvnRepositoryFileSystem.BerkeleyDB; reposClient.CreateRepository(path, ra); Assert.That(File.Exists(Path.Combine(path, "db/DB_CONFIG"))); reposClient.HotCopy(path, sbox.GetTempDir()); reposClient.SetRevisionProperty(path, 0, SvnPropertyNames.SvnLog, "Hahaha"); }
public void CreateBdbRepos() { SvnSandBox sbox = new SvnSandBox(this); string path = sbox.GetTempDir(); SvnRepositoryClient reposClient = new SvnRepositoryClient(); SvnCreateRepositoryArgs ra = new SvnCreateRepositoryArgs(); ra.RepositoryType = SvnRepositoryFileSystem.BerkeleyDB; reposClient.CreateRepository(path, ra); Assert.That(File.Exists(Path.Combine(path, "db/DB_CONFIG"))); reposClient.HotCopy(path, sbox.GetTempDir()); reposClient.SetRevisionProperty(path, 0, SvnPropertyNames.SvnLog, "Hahaha"); }