Mercurial > hg-stable
diff mercurial/localrepo.py @ 1102:c81d264cd17d
localrepo: minor opener usage restructuring
author | mpm@selenic.com |
---|---|
date | Sat, 27 Aug 2005 16:34:54 -0700 |
parents | mercurial/hg.py@2cf5c8a4eae5 mercurial/hg.py@2cf5c8a4eae5 |
children | 30ab5b8ee8ec |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Aug 27 16:28:53 2005 -0700 +++ b/mercurial/localrepo.py Sat Aug 27 16:34:54 2005 -0700 @@ -12,7 +12,7 @@ demandload(globals(), "re lock transaction tempfile stat mdiff") class localrepository: - def __init__(self, ui, opener, path=None, create=0): + def __init__(self, ui, path=None, create=0): if not path: p = os.getcwd() while not os.path.isdir(os.path.join(p, ".hg")): @@ -32,8 +32,8 @@ os.mkdir(self.path) os.mkdir(self.join("data")) - self.opener = opener(self.path) - self.wopener = opener(self.root) + self.opener = util.opener(self.path) + self.wopener = util.opener(self.root) self.manifest = manifest.manifest(self.opener) self.changelog = changelog.changelog(self.opener) self.tagscache = None