hgkw/keyword.py
branchstable
changeset 646 c2b1a05b35e1
parent 636 d0c35f5fa25f
child 651 a047bb9bab24
equal deleted inserted replaced
645:a718e9827510 646:c2b1a05b35e1
   352     ui.note(_('unhooked all commit hooks\n'))
   352     ui.note(_('unhooked all commit hooks\n'))
   353     ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg))
   353     ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg))
   354     repo.commit(text=msg)
   354     repo.commit(text=msg)
   355     ui.status(_('\n\tkeywords expanded\n'))
   355     ui.status(_('\n\tkeywords expanded\n'))
   356     ui.write(repo.wread(fn))
   356     ui.write(repo.wread(fn))
   357     ui.debug(_('\nremoving temporary repository %s\n') % tmpdir)
   357     ui.debug('\nremoving temporary repository %s\n' % tmpdir)
   358     shutil.rmtree(tmpdir, ignore_errors=True)
   358     shutil.rmtree(tmpdir, ignore_errors=True)
   359 
   359 
   360 def expand(ui, repo, *pats, **opts):
   360 def expand(ui, repo, *pats, **opts):
   361     '''expand keywords in the working directory
   361     '''expand keywords in the working directory
   362 
   362