Mercurial > hg
comparison hgext/keyword.py @ 15324:0890842c41d1 stable
keyword: correct grammar in iskwfile docstring
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Fri, 21 Oct 2011 12:07:27 +0100 |
parents | 59e8bc22506e |
children | 42630f54e513 |
comparison
equal
deleted
inserted
replaced
15323:19368c54a774 | 15324:0890842c41d1 |
---|---|
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 |