# HG changeset patch # User Artem Tikhomirov # Date 1298574851 -3600 # Node ID 305ee74c0aa685c5827498e81c3e62405d206da5 # Parent 6b55f10ef54bd5f46fbd5f67a4b716b814d6aa6f [2] do not rely clients supplied us absolute path diff -r 6b55f10ef54b -r 305ee74c0aa6 src/org/tmatesoft/hg/repo/HgLookup.java --- a/src/org/tmatesoft/hg/repo/HgLookup.java Thu Feb 24 18:53:33 2011 +0100 +++ b/src/org/tmatesoft/hg/repo/HgLookup.java Thu Feb 24 20:14:11 2011 +0100 @@ -39,7 +39,7 @@ // look up in specified location and above public HgRepository detect(File location) throws HgException { - File dir = location; + File dir = location.getAbsoluteFile(); File repository; do { repository = new File(dir, ".hg");