equal
deleted
inserted
replaced
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 |