hgkw/keyword.py
changeset 344 1346cc5a6461
parent 341 5ef2b11df3d3
child 345 af2da5e499f2
equal deleted inserted replaced
342:abf7ccaf0788 344:1346cc5a6461
   243     '''Overwrites selected files expanding/shrinking keywords.'''
   243     '''Overwrites selected files expanding/shrinking keywords.'''
   244     ctx = repo.changectx(node)
   244     ctx = repo.changectx(node)
   245     mf = ctx.manifest()
   245     mf = ctx.manifest()
   246     if node is not None:   # commit
   246     if node is not None:   # commit
   247         _kwtemplater.commitnode = node
   247         _kwtemplater.commitnode = node
   248         files = [f for f in ctx.files() if mf.has_key(f)]
   248         files = [f for f in ctx.files() if f in mf]
   249         notify = ui.debug
   249         notify = ui.debug
   250     else:                  # kwexpand/kwshrink
   250     else:                  # kwexpand/kwshrink
   251         notify = ui.note
   251         notify = ui.note
   252     candidates = [f for f in files if _iskwfile(f, mf.linkf)]
   252     candidates = [f for f in files if _iskwfile(f, mf.linkf)]
   253     if candidates:
   253     if candidates: