Fixed --repository option when handling relative path
authortksoh@users.sf.net
Wed, 17 Aug 2005 00:33:53 -0800
changeset 933 9c43d68ad59f
parent 932 fdf3b7f3b3b4
child 934 ff484cc157d6
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
--- 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: