@@ -170,7 +170,7 @@ public void testStoreAndGetIncrementalTags() throws Exception {
170
170
171
171
// Add bunch of changesets with file based changes and tags.
172
172
MercurialRepositoryTest .runHgCommand (reposRoot , "import" ,
173
- getClass ().getResource ("/history/hg-export-tag.txt" ).getPath ());
173
+ new File ( getClass ().getResource ("/history/hg-export-tag.txt" ).getFile ()). getAbsolutePath ());
174
174
175
175
// Perform incremental reindex.
176
176
repo .createCache (cache , cache .getLatestCachedRevision (repo ));
@@ -293,7 +293,7 @@ public void testStoreAndGet() throws Exception {
293
293
294
294
// test incremental update
295
295
MercurialRepositoryTest .runHgCommand (reposRoot , "import" ,
296
- getClass ().getResource ("/history/hg-export.txt" ).getPath ());
296
+ new File ( getClass ().getResource ("/history/hg-export.txt" ).getFile ()). getAbsolutePath ());
297
297
298
298
repo .createCache (cache , cache .getLatestCachedRevision (repo ));
299
299
@@ -493,11 +493,11 @@ public void testRenamedFilePlusChangesBranched() throws Exception {
493
493
494
494
// Branch the repo and add one changeset.
495
495
runHgCommand (reposRoot , "unbundle" ,
496
- getClass ().getResource ("/history/hg-branch.bundle" ).getPath ());
496
+ new File ( getClass ().getResource ("/history/hg-branch.bundle" ).getFile ()). getAbsolutePath ());
497
497
498
498
// Import changesets which rename one of the files in the default branch.
499
499
runHgCommand (reposRoot , "import" ,
500
- getClass ().getResource ("/history/hg-export-renamed.txt" ).getPath ());
500
+ new File ( getClass ().getResource ("/history/hg-export-renamed.txt" ).getFile ()). getAbsolutePath ());
501
501
502
502
// Switch to the newly created branch.
503
503
runHgCommand (reposRoot , "update" , "mybranch" );
0 commit comments