Save an absolute path in repo.path
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 10 Mar 2007 22:03:20 -0300
changeset 4170 7b5723c95a82
parent 4169 0182cb2e4aac
child 4171 1df1baf2002e
Save an absolute path in repo.path This should keep things working if the process changes directories after creating a repo object.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Mar 09 19:57:26 2007 +0100
+++ b/mercurial/localrepo.py	Sat Mar 10 22:03:20 2007 -0300
@@ -33,8 +33,8 @@
                                            " 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)