Skip to content
Snippets Groups Projects
Commit 6c7283fa authored by Matt Mackall's avatar Matt Mackall
Browse files

check-code: don't mark debug messages for translation

parent 8083f4d0
No related branches found
No related tags found
No related merge requests found
...@@ -178,6 +178,7 @@ ...@@ -178,6 +178,7 @@
(r'[\s\(](open|file)\([^)]*\)\.', (r'[\s\(](open|file)\([^)]*\)\.',
"always assign an opened file to a variable, and close it afterwards"), "always assign an opened file to a variable, and close it afterwards"),
(r'(?i)descendent', "the proper spelling is descendAnt"), (r'(?i)descendent', "the proper spelling is descendAnt"),
(r'\.debug\(\_', "don't mark debug messages for translation"),
], ],
# warnings # warnings
[ [
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
tgt = os.path.join(dst, fn) tgt = os.path.join(dst, fn)
ts = linkfilter(srcpath, tgt, st) ts = linkfilter(srcpath, tgt, st)
if not ts: if not ts:
ui.debug(_('not linkable: %s\n') % fn) ui.debug('not linkable: %s\n' % fn)
continue continue
targets.append((fn, ts.st_size)) targets.append((fn, ts.st_size))
ui.progress(_('pruning'), pos, fn, _('files'), total) ui.progress(_('pruning'), pos, fn, _('files'), total)
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
sfp.close() sfp.close()
dfp.close() dfp.close()
if sin: if sin:
ui.debug(_('not linkable: %s\n') % f) ui.debug('not linkable: %s\n' % f)
continue continue
try: try:
relinkfile(source, tgt) relinkfile(source, tgt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment