From 564f653a74e5d6b6b529ba92db5da6798db41feb Mon Sep 17 00:00:00 2001 From: "tksoh@users.sf.net" Date: Wed, 17 Aug 2005 00:33:53 -0800 Subject: [PATCH] Fixed --repository option when handling relative path When specifying relative path to --repository option, 'log' and 'diff' were unable to find the files specified. Here's the fix. --- mercurial/hg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercurial/hg.py b/mercurial/hg.py index 6f82dfe3fc..bc7d4b34d7 100644 --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -634,7 +634,7 @@ class localrepository: if not create and not os.path.isdir(self.path): raise RepoError("repository %s not found" % self.path) - self.root = path + self.root = os.path.abspath(path) self.ui = ui if create: