hgkw/keyword.py
branch0.9.2compat
changeset 648 3a0f284c872b
parent 640 7e80fc29ba27
child 658 efcbed613548
equal deleted inserted replaced
644:b3d3788db7ef 648:3a0f284c872b
   521     ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg))
   521     ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg))
   522     repo.commit(text=msg)
   522     repo.commit(text=msg)
   523     fmt = ui.verbose and ' in %s' % path or ''
   523     fmt = ui.verbose and ' in %s' % path or ''
   524     ui.status(_('\n\t%s keywords expanded%s\n') % (kwstatus, fmt))
   524     ui.status(_('\n\t%s keywords expanded%s\n') % (kwstatus, fmt))
   525     ui.write(repo.wread(fn))
   525     ui.write(repo.wread(fn))
   526     ui.debug(_('\nremoving temporary repository %s\n') % tmpdir)
   526     ui.debug('\nremoving temporary repository %s\n' % tmpdir)
   527     shutil.rmtree(tmpdir, ignore_errors=True)
   527     shutil.rmtree(tmpdir, ignore_errors=True)
   528 
   528 
   529 def expand(ui, repo, *pats, **opts):
   529 def expand(ui, repo, *pats, **opts):
   530     '''expand keywords in the working directory
   530     '''expand keywords in the working directory
   531 
   531