Exemple #1
0
        public void BranchingShouldCreateParentDirectories()
        {
            Using.SvnRepo(url =>
            {
                File.WriteAllText("test.txt", "");
                var provider = new SvnProvider(log, TimeSpan.FromSeconds(30));
                provider.Import(".", url + "/test", "");

                provider.Branch(url + "/test", url + "/branch/v1", "");
                Assert.That(provider.Exists(url + "/branch/v1/test.txt"), log.Contents);
            });
        }
Exemple #2
0
        public void BranchingShouldCopyRepositoryToNewEndpoint()
        {
            Using.SvnRepo(url =>
            {
                File.WriteAllText("test.txt", "");
                var provider = new SvnProvider(log, TimeSpan.FromSeconds(30));
                provider.Import(".", url + "/test", "");

                provider.Branch(url + "/test", url + "/branch", "");

                Assert.That(provider.Exists(url + "/branch/test.txt"), log.Contents);
            });
        }