equal
deleted
inserted
replaced
235 return self.substitute(data, path, ctx, self.rekw.sub) |
235 return self.substitute(data, path, ctx, self.rekw.sub) |
236 return data |
236 return data |
237 |
237 |
238 def iskwfile(self, cand, ctx): |
238 def iskwfile(self, cand, ctx): |
239 '''Returns subset of candidates which are configured for keyword |
239 '''Returns subset of candidates which are configured for keyword |
240 expansion are not symbolic links.''' |
240 expansion but are not symbolic links.''' |
241 return [f for f in cand if self.match(f) and not 'l' in ctx.flags(f)] |
241 return [f for f in cand if self.match(f) and not 'l' in ctx.flags(f)] |
242 |
242 |
243 def overwrite(self, ctx, candidates, lookup, expand, rekw=False): |
243 def overwrite(self, ctx, candidates, lookup, expand, rekw=False): |
244 '''Overwrites selected files expanding/shrinking keywords.''' |
244 '''Overwrites selected files expanding/shrinking keywords.''' |
245 if self.restrict or lookup or self.record: # exclude kw_copy |
245 if self.restrict or lookup or self.record: # exclude kw_copy |