# HG changeset patch # User Alexis S. L. Carvalho # Date 1173575000 10800 # Node ID 7b5723c95a822624f1c25f3ad6149f2a5f4b890a # Parent 0182cb2e4aacf303a3a3a1164a01432a2024e981 Save an absolute path in repo.path This should keep things working if the process changes directories after creating a repo object. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- 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)