mercurial/localrepo.py
changeset 4177 ba51a8225a60
parent 4170 ac9e891f2c0f
parent 4171 7b5723c95a82
child 4195 b5d1eaade333
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -31,8 +31,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)