hgkw/keyword.py
branchstable
changeset 1076 a347814c7ff6
parent 1075 9c31017cb4b2
child 1077 2a1ab2f6559c
equal deleted inserted replaced
1073:bc8e57c1ae32 1076:a347814c7ff6
   439     repo.dirstate.setbranch('demobranch')
   439     repo.dirstate.setbranch('demobranch')
   440     for name, cmd in ui.configitems('hooks'):
   440     for name, cmd in ui.configitems('hooks'):
   441         if name.split('.', 1)[0].find('commit') > -1:
   441         if name.split('.', 1)[0].find('commit') > -1:
   442             repo.ui.setconfig('hooks', name, '')
   442             repo.ui.setconfig('hooks', name, '')
   443     msg = _('hg keyword configuration and expansion example')
   443     msg = _('hg keyword configuration and expansion example')
   444     ui.note("hg ci -m '%s'\n" % msg)
   444     ui.note("hg ci -m '%s'\n" % msg) # check-code-ignore
   445     repo.commit(text=msg)
   445     repo.commit(text=msg)
   446     ui.status(_('\n\tkeywords expanded\n'))
   446     ui.status(_('\n\tkeywords expanded\n'))
   447     ui.write(repo.wread(fn))
   447     ui.write(repo.wread(fn))
   448     shutil.rmtree(tmpdir, ignore_errors=True)
   448     shutil.rmtree(tmpdir, ignore_errors=True)
   449 
   449