Mercurial > hg
comparison hgext/keyword.py @ 20240:60c4d76b79b5
cleanup: Remove the only ever used skip-check-code pragma
Use the work-around suggested by the rule instead
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Tue, 07 Jan 2014 22:29:39 +0100 |
parents | 7ad2ae7792ad |
children | e96e9f805c19 |
comparison
equal
deleted
inserted
replaced
20239:16b5f498f49c | 20240:60c4d76b79b5 |
---|---|
446 wlock.release() | 446 wlock.release() |
447 for name, cmd in ui.configitems('hooks'): | 447 for name, cmd in ui.configitems('hooks'): |
448 if name.split('.', 1)[0].find('commit') > -1: | 448 if name.split('.', 1)[0].find('commit') > -1: |
449 repo.ui.setconfig('hooks', name, '') | 449 repo.ui.setconfig('hooks', name, '') |
450 msg = _('hg keyword configuration and expansion example') | 450 msg = _('hg keyword configuration and expansion example') |
451 ui.note("hg ci -m '%s'\n" % msg) # check-code-ignore | 451 ui.note(("hg ci -m '%s'\n" % msg)) |
452 repo.commit(text=msg) | 452 repo.commit(text=msg) |
453 ui.status(_('\n\tkeywords expanded\n')) | 453 ui.status(_('\n\tkeywords expanded\n')) |
454 ui.write(repo.wread(fn)) | 454 ui.write(repo.wread(fn)) |
455 shutil.rmtree(tmpdir, ignore_errors=True) | 455 shutil.rmtree(tmpdir, ignore_errors=True) |
456 | 456 |