keyword: intentionally ignore check-code warning about unwrapped ui message
authorChristian Ebert <blacktrash@gmx.net>
Sun, 13 May 2012 14:26:26 +0100
changeset 16741 77c9a78e31dd
parent 16740 43cfe56121d3
child 16742 973671fc0804
keyword: intentionally ignore check-code warning about unwrapped ui message
hgext/keyword.py
tests/test-check-code-hg.t
--- 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