Mercurial > hg > pyhgsh
comparison mercurial/localrepo.py @ 1947:65aff2ed61ae
fix the call to util.matcher (the args should be (reporoot, cwd, ...))
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 13 Mar 2006 23:32:57 +0100 |
parents | 36c6e4c3ff43 |
children | d53a18f592be |
comparison
equal
deleted
inserted
replaced
1939:d59fc0d4558f | 1947:65aff2ed61ae |
---|---|
164 | 164 |
165 def wread(self, filename): | 165 def wread(self, filename): |
166 if self.encodepats == None: | 166 if self.encodepats == None: |
167 l = [] | 167 l = [] |
168 for pat, cmd in self.ui.configitems("encode"): | 168 for pat, cmd in self.ui.configitems("encode"): |
169 mf = util.matcher("", "/", [pat], [], [])[1] | 169 mf = util.matcher(self.root, "", [pat], [], [])[1] |
170 l.append((mf, cmd)) | 170 l.append((mf, cmd)) |
171 self.encodepats = l | 171 self.encodepats = l |
172 | 172 |
173 data = self.wopener(filename, 'r').read() | 173 data = self.wopener(filename, 'r').read() |
174 | 174 |
182 | 182 |
183 def wwrite(self, filename, data, fd=None): | 183 def wwrite(self, filename, data, fd=None): |
184 if self.decodepats == None: | 184 if self.decodepats == None: |
185 l = [] | 185 l = [] |
186 for pat, cmd in self.ui.configitems("decode"): | 186 for pat, cmd in self.ui.configitems("decode"): |
187 mf = util.matcher("", "/", [pat], [], [])[1] | 187 mf = util.matcher(self.root, "", [pat], [], [])[1] |
188 l.append((mf, cmd)) | 188 l.append((mf, cmd)) |
189 self.decodepats = l | 189 self.decodepats = l |
190 | 190 |
191 for mf, cmd in self.decodepats: | 191 for mf, cmd in self.decodepats: |
192 if mf(filename): | 192 if mf(filename): |