changeset 4171:7b5723c95a82

Save an absolute path in repo.path This should keep things working if the process changes directories after creating a repo object.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 10 Mar 2007 22:03:20 -0300
parents 0182cb2e4aac
children 1df1baf2002e
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -33,8 +33,8 @@ class localrepository(repo.repository):
                                            " here (.hg not found)"))
             path = p
 
-        self.path = os.path.join(path, ".hg")
         self.root = os.path.realpath(path)
+        self.path = os.path.join(self.root, ".hg")
         self.origroot = path
         self.opener = util.opener(self.path)
         self.wopener = util.opener(self.root)