changeset 16741:77c9a78e31dd

keyword: intentionally ignore check-code warning about unwrapped ui message
author Christian Ebert <blacktrash@gmx.net>
date Sun, 13 May 2012 14:26:26 +0100
parents 43cfe56121d3
children 973671fc0804
files hgext/keyword.py tests/test-check-code-hg.t
diffstat 2 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Wed May 16 10:29:11 2012 -0500
+++ b/hgext/keyword.py	Sun May 13 14:26:26 2012 +0100
@@ -441,7 +441,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)
+    ui.note("hg ci -m '%s'\n" % msg) # check-code-ignore
     repo.commit(text=msg)
     ui.status(_('\n\tkeywords expanded\n'))
     ui.write(repo.wread(fn))
--- a/tests/test-check-code-hg.t	Wed May 16 10:29:11 2012 -0500
+++ b/tests/test-check-code-hg.t	Sun May 13 14:26:26 2012 +0100
@@ -62,9 +62,6 @@
   hgext/hgk.py:0:
    >     ui.write("tree %s\n" % short(ctx.changeset()[0]))
    warning: unwrapped ui message
-  hgext/keyword.py:0:
-   >     ui.note("hg ci -m '%s'\n" % msg)
-   warning: unwrapped ui message
   hgext/mq.py:0:
    >         ui.write("mq:     %s\n" % ', '.join(m))
    warning: unwrapped ui message