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); }); }
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); }); }