HgFile: correctly calculate relative path for root.

This commit is contained in:
Kirill Likhodedov
2011-04-11 16:29:24 +04:00
parent 7f9709ca69
commit 577f261a7b
@@ -75,6 +75,9 @@ public class HgFile {
}
private static String buildRelativePath(File anchestor, File descendant) {
if (anchestor.equals(descendant)) {
return ".";
}
if (anchestor.equals(descendant.getParentFile())) {
return descendant.getName();
}