check-code: don't mark debug messages for translation stable
authorMatt Mackall <mpm@selenic.com>
Tue, 21 Jun 2011 15:21:57 -0500
branchstable
changeset 14709 6c7283faa967
parent 14708 8083f4d00bd1
child 14710 640bfe96ddcf
child 14711 ac70f8d5987c
child 14776 5efc32b013ce
check-code: don't mark debug messages for translation
contrib/check-code.py
hgext/relink.py
--- a/contrib/check-code.py	Tue Jun 21 18:35:13 2011 +0200
+++ b/contrib/check-code.py	Tue Jun 21 15:21:57 2011 -0500
@@ -178,6 +178,7 @@
     (r'[\s\(](open|file)\([^)]*\)\.',
      "always assign an opened file to a variable, and close it afterwards"),
     (r'(?i)descendent', "the proper spelling is descendAnt"),
+    (r'\.debug\(\_', "don't mark debug messages for translation"),
   ],
   # warnings
   [
--- a/hgext/relink.py	Tue Jun 21 18:35:13 2011 +0200
+++ b/hgext/relink.py	Tue Jun 21 15:21:57 2011 -0500
@@ -117,7 +117,7 @@
         tgt = os.path.join(dst, fn)
         ts = linkfilter(srcpath, tgt, st)
         if not ts:
-            ui.debug(_('not linkable: %s\n') % fn)
+            ui.debug('not linkable: %s\n' % fn)
             continue
         targets.append((fn, ts.st_size))
         ui.progress(_('pruning'), pos, fn, _('files'), total)
@@ -159,7 +159,7 @@
         sfp.close()
         dfp.close()
         if sin:
-            ui.debug(_('not linkable: %s\n') % f)
+            ui.debug('not linkable: %s\n' % f)
             continue
         try:
             relinkfile(source, tgt)