[PATCH 3 of 6 V2] cleanup: Remove the only ever used skip-check-code pragma
Simon Heimberg
simohe at besonet.ch
Thu Jan 9 08:52:35 CST 2014
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1389130179 -3600
# Tue Jan 07 22:29:39 2014 +0100
# Node ID a48899b6ab2b0e03768344cdf323a318ab5596ee
# Parent 0f125811e07ef14d100f82db48ff8ecb556a6279
cleanup: Remove the only ever used skip-check-code pragma
Use the work-around suggested by the rule instead
diff -r 0f125811e07e -r a48899b6ab2b hgext/keyword.py
--- a/hgext/keyword.py Tue Jan 07 22:29:15 2014 +0100
+++ b/hgext/keyword.py Tue Jan 07 22:29:39 2014 +0100
@@ -448,7 +448,7 @@
if name.split('.', 1)[0].find('commit') > -1:
repo.ui.setconfig('hooks', name, '')
msg = _('hg keyword configuration and expansion example')
- ui.note("hg ci -m '%s'\n" % msg) # check-code-ignore
+ ui.note(("hg ci -m '%s'\n" % msg))
repo.commit(text=msg)
ui.status(_('\n\tkeywords expanded\n'))
ui.write(repo.wread(fn))
More information about the Mercurial-devel
mailing list