##// END OF EJS Templates
check-code: don't mark debug messages for translation
Matt Mackall -
r14709:6c7283fa stable
parent child Browse files
Show More
@@ -178,6 +178,7 b' pypats = ['
178 (r'[\s\(](open|file)\([^)]*\)\.',
178 (r'[\s\(](open|file)\([^)]*\)\.',
179 "always assign an opened file to a variable, and close it afterwards"),
179 "always assign an opened file to a variable, and close it afterwards"),
180 (r'(?i)descendent', "the proper spelling is descendAnt"),
180 (r'(?i)descendent', "the proper spelling is descendAnt"),
181 (r'\.debug\(\_', "don't mark debug messages for translation"),
181 ],
182 ],
182 # warnings
183 # warnings
183 [
184 [
@@ -117,7 +117,7 b' def prune(candidates, src, dst, ui):'
117 tgt = os.path.join(dst, fn)
117 tgt = os.path.join(dst, fn)
118 ts = linkfilter(srcpath, tgt, st)
118 ts = linkfilter(srcpath, tgt, st)
119 if not ts:
119 if not ts:
120 ui.debug(_('not linkable: %s\n') % fn)
120 ui.debug('not linkable: %s\n' % fn)
121 continue
121 continue
122 targets.append((fn, ts.st_size))
122 targets.append((fn, ts.st_size))
123 ui.progress(_('pruning'), pos, fn, _('files'), total)
123 ui.progress(_('pruning'), pos, fn, _('files'), total)
@@ -159,7 +159,7 b' def do_relink(src, dst, files, ui):'
159 sfp.close()
159 sfp.close()
160 dfp.close()
160 dfp.close()
161 if sin:
161 if sin:
162 ui.debug(_('not linkable: %s\n') % f)
162 ui.debug('not linkable: %s\n' % f)
163 continue
163 continue
164 try:
164 try:
165 relinkfile(source, tgt)
165 relinkfile(source, tgt)
General Comments 0
You need to be logged in to leave comments. Login now