-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: mercurial-plugin
-
Environment:Windows
Inside the HgExeTest unit test, the HgExe.pathEquals asserts for URI's starting with file:/ fail under windows. For example:
assertTrue(HgExe.pathEquals("file:/var/hg/stuff", "/var/hg/stuff"));
In the above case, file:/var/hg/stuff resolves to C:/var/hg/stuff rather than /var/hg/stuff (so there is an additional C: prefix).
This could be 'fixed' by checking if System.getProperty("os.name").contains( "Windows" ) and then pre pending a drive letter + colon, however it is not clear to me if this will defeat the purpose of this test (or indeed exactly what the purpose of this test is).