Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hg.py @ 933:9c43d68ad59f
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.
author | tksoh@users.sf.net |
---|---|
date | Wed, 17 Aug 2005 00:33:53 -0800 |
parents | b765e970c9ff |
children | ff484cc157d6 |
comparison
equal
deleted
inserted
replaced
932:fdf3b7f3b3b4 | 933:9c43d68ad59f |
---|---|
632 self.path = os.path.join(path, ".hg") | 632 self.path = os.path.join(path, ".hg") |
633 | 633 |
634 if not create and not os.path.isdir(self.path): | 634 if not create and not os.path.isdir(self.path): |
635 raise RepoError("repository %s not found" % self.path) | 635 raise RepoError("repository %s not found" % self.path) |
636 | 636 |
637 self.root = path | 637 self.root = os.path.abspath(path) |
638 self.ui = ui | 638 self.ui = ui |
639 | 639 |
640 if create: | 640 if create: |
641 os.mkdir(self.path) | 641 os.mkdir(self.path) |
642 os.mkdir(self.join("data")) | 642 os.mkdir(self.join("data")) |