Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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");
        }
Ejemplo n.º 3
0
        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");
        }