Skip to content

Commit

Permalink
do not disturb the original repository
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Sep 9, 2024
1 parent b7ec374 commit 058af3d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ void testBuildTagListInitial() throws Exception {

@Test
void testBuildTagListOneMore() throws Exception {
Path repositoryRootPath = Files.createDirectory(Path.of(RuntimeEnvironment.getInstance().getSourceRootPath(),
"addedTagTest"));
File repositoryRoot = repositoryRootPath.toFile();
runHgCommand(this.repositoryRoot, "clone", this.repositoryRoot.toString(), repositoryRootPath.toString());
MercurialRepository hgRepo = (MercurialRepository) RepositoryFactory.getRepository(repositoryRoot);
assertNotNull(hgRepo);
runHgCommand(repositoryRoot, "tag", "foo");
Expand All @@ -488,5 +492,6 @@ void testBuildTagListOneMore() throws Exception {
Set<TagEntry> expectedTags = Set.of(new MercurialTagEntry(7, "start_of_novel"),
new MercurialTagEntry(9, "foo"));
assertEquals(expectedTags, tags);
IOUtils.removeRecursive(repositoryRootPath);
}
}

0 comments on commit 058af3d

Please sign in to comment.