mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
HgFile: correctly calculate relative path for root.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user