public RepositorySetup(string cloneName, RepositorySetup sourceToClone) { Init(cloneName); string pathToProject = RootFolder.Combine(ProjectNameForTest); ProjectFolderConfig = sourceToClone.ProjectFolderConfig.Clone(); ProjectFolderConfig.FolderPath = pathToProject; sourceToClone.MakeClone(pathToProject); ProjectFolder = TemporaryFolder.TrackExisting(RootFolder.Combine(ProjectNameForTest)); var hg = new HgRepository(pathToProject, Progress); hg.SetUserNameInIni(cloneName, Progress); }