[PATCH 3 of 6] cleanup: Remove the only ever used skip-check-code pragma
Simon Heimberg
simohe at besonet.ch
Tue Jan 7 15:31:19 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 c9c1f06e53c0af7aeb5c646b44dbbe42bca14fe1
# Parent 661afe245eee6f739b52641878f87984baf06468
cleanup: Remove the only ever used skip-check-code pragma
Use the work-around suggested by the rule instead
diff -r 661afe245eee -r c9c1f06e53c0 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