Skip to content

Commit 22be7f6

Browse files
author
Vladimir Kotal
committed
revert prior to hg import
1 parent 028d223 commit 22be7f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opengrok-web/src/test/java/org/opengrok/web/api/v1/controller/ProjectsControllerTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ public void testIndexed() throws IOException {
380380
Files.copy(HistoryGuru.getInstance().getClass().getResourceAsStream("/history/hg-export-subdir.txt"),
381381
temp, StandardCopyOption.REPLACE_EXISTING);
382382

383+
// prevent 'uncommitted changes' error
384+
MercurialRepositoryTest.runHgCommand(mercurialRoot, "revert", "--all");
385+
383386
MercurialRepositoryTest.runHgCommand(mercurialRoot, "import", temp.toString());
384387

385388
temp.toFile().delete();

0 commit comments

Comments
 (0)