hgext/keyword.py
branchstable
changeset 15324 0890842c41d1
parent 15183 59e8bc22506e
child 15354 42630f54e513
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