Mercurial > hg
changeset 6902:93f761c25dea
store: drop self.encodefn
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Aug 2008 20:18:44 -0500 |
parents | 43a817f3a649 |
children | 0642d9d7ec80 |
files | mercurial/store.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/store.py Wed Aug 13 20:18:44 2008 -0500 +++ b/mercurial/store.py Wed Aug 13 20:18:44 2008 -0500 @@ -94,10 +94,9 @@ def __init__(self, path, opener): self.path = os.path.join(path, 'store') self.createmode = _calcmode(self.path) - self.encodefn = encodefilename op = opener(self.path) op.createmode = self.createmode - self.opener = lambda f, *args, **kw: op(self.encodefn(f), *args, **kw) + self.opener = lambda f, *args, **kw: op(encodefilename(f), *args, **kw) def datafiles(self): for a, b, size in self._walk('data', True): @@ -108,7 +107,7 @@ yield a, b, size def join(self, f): - return os.path.join(self.path, self.encodefn(f)) + return os.path.join(self.path, encodefilename(f)) def store(requirements, path, opener): if 'store' in requirements: