hgkw/keyword.py
branchstable
changeset 1316 c7c23e04673e
parent 1315 e3461e819922
child 1353 b420a21eb9e5
equal deleted inserted replaced
1315:e3461e819922 1316:c7c23e04673e
   445         wlock.release()
   445         wlock.release()
   446     for name, cmd in ui.configitems('hooks'):
   446     for name, cmd in ui.configitems('hooks'):
   447         if name.split('.', 1)[0].find('commit') > -1:
   447         if name.split('.', 1)[0].find('commit') > -1:
   448             repo.ui.setconfig('hooks', name, '')
   448             repo.ui.setconfig('hooks', name, '')
   449     msg = _('hg keyword configuration and expansion example')
   449     msg = _('hg keyword configuration and expansion example')
   450     ui.note("hg ci -m '%s'\n" % msg) # check-code-ignore
   450     ui.note(("hg ci -m '%s'\n" % msg))
   451     repo.commit(text=msg)
   451     repo.commit(text=msg)
   452     ui.status(_('\n\tkeywords expanded\n'))
   452     ui.status(_('\n\tkeywords expanded\n'))
   453     ui.write(repo.wread(fn))
   453     ui.write(repo.wread(fn))
   454     shutil.rmtree(tmpdir, ignore_errors=True)
   454     shutil.rmtree(tmpdir, ignore_errors=True)
   455 
   455