Show More
@@ -309,7 +309,7 b' def checkfile(f, logfunc=_defaultlogger.' | |||||
309 | :logfunc: function used to report error |
|
309 | :logfunc: function used to report error | |
310 | logfunc(filename, linenumber, linecontent, errormessage) |
|
310 | logfunc(filename, linenumber, linecontent, errormessage) | |
311 | :maxerr: number of error to display before arborting. |
|
311 | :maxerr: number of error to display before arborting. | |
312 |
Set to |
|
312 | Set to false (default) to report all errors | |
313 |
|
313 | |||
314 | return True if no error is found, False otherwise. |
|
314 | return True if no error is found, False otherwise. | |
315 | """ |
|
315 | """ | |
@@ -392,7 +392,7 b' def checkfile(f, logfunc=_defaultlogger.' | |||||
392 | for e in errors: |
|
392 | for e in errors: | |
393 | logfunc(*e) |
|
393 | logfunc(*e) | |
394 | fc += 1 |
|
394 | fc += 1 | |
395 |
if maxerr |
|
395 | if maxerr and fc >= maxerr: | |
396 | print " (too many errors, giving up)" |
|
396 | print " (too many errors, giving up)" | |
397 | break |
|
397 | break | |
398 |
|
398 |
@@ -3,7 +3,7 b'' | |||||
3 |
|
3 | |||
4 | $ "$check_code" `hg manifest` || echo 'FAILURE IS NOT AN OPTION!!!' |
|
4 | $ "$check_code" `hg manifest` || echo 'FAILURE IS NOT AN OPTION!!!' | |
5 |
|
5 | |||
6 | $ "$check_code" --warnings --nolineno `hg manifest` |
|
6 | $ "$check_code" --warnings --nolineno --per-file=0 `hg manifest` | |
7 | contrib/check-code.py:0: |
|
7 | contrib/check-code.py:0: | |
8 | > # (r'^\s+[^_ \n][^_. \n]+_[^_\n]+\s*=', "don't use underbars in identifiers"), |
|
8 | > # (r'^\s+[^_ \n][^_. \n]+_[^_\n]+\s*=', "don't use underbars in identifiers"), | |
9 | warning: line over 80 characters |
|
9 | warning: line over 80 characters | |
@@ -242,7 +242,16 b'' | |||||
242 | hgext/mq.py:0: |
|
242 | hgext/mq.py:0: | |
243 | > ('e', 'exact', None, _('apply the target patch to its recorded parent')), |
|
243 | > ('e', 'exact', None, _('apply the target patch to its recorded parent')), | |
244 | warning: line over 80 characters |
|
244 | warning: line over 80 characters | |
245 | (too many errors, giving up) |
|
245 | hgext/mq.py:0: | |
|
246 | > except: | |||
|
247 | warning: naked except clause | |||
|
248 | warning: naked except clause | |||
|
249 | hgext/mq.py:0: | |||
|
250 | > ui.write("mq: %s\n" % ', '.join(m)) | |||
|
251 | warning: unwrapped ui message | |||
|
252 | hgext/mq.py:0: | |||
|
253 | > repo.mq.qseries(repo, missing=opts.get('missing'), summary=opts.get('summary')) | |||
|
254 | warning: line over 80 characters | |||
246 | hgext/notify.py:0: |
|
255 | hgext/notify.py:0: | |
247 | > ui.note(_('notify: suppressing notification for merge %d:%s\n') % |
|
256 | > ui.note(_('notify: suppressing notification for merge %d:%s\n') % | |
248 | warning: line over 80 characters |
|
257 | warning: line over 80 characters | |
@@ -328,7 +337,95 b'' | |||||
328 | mercurial/commands.py:0: |
|
337 | mercurial/commands.py:0: | |
329 | > ui.write(' other : ' + fmt2 % pcfmt(numoprev, numprev)) |
|
338 | > ui.write(' other : ' + fmt2 % pcfmt(numoprev, numprev)) | |
330 | warning: line over 80 characters |
|
339 | warning: line over 80 characters | |
331 | (too many errors, giving up) |
|
340 | mercurial/commands.py:0: | |
|
341 | > ui.write(' where prev = p1 : ' + fmt2 % pcfmt(nump1prev, numprev)) | |||
|
342 | warning: line over 80 characters | |||
|
343 | mercurial/commands.py:0: | |||
|
344 | > ui.write(' where prev = p2 : ' + fmt2 % pcfmt(nump2prev, numprev)) | |||
|
345 | warning: line over 80 characters | |||
|
346 | mercurial/commands.py:0: | |||
|
347 | > ui.write('deltas against other : ' + fmt % pcfmt(numother, numdeltas)) | |||
|
348 | warning: line over 80 characters | |||
|
349 | warning: unwrapped ui message | |||
|
350 | mercurial/commands.py:0: | |||
|
351 | > ui.write('deltas against p1 : ' + fmt % pcfmt(nump1, numdeltas)) | |||
|
352 | warning: unwrapped ui message | |||
|
353 | mercurial/commands.py:0: | |||
|
354 | > ui.write('deltas against p2 : ' + fmt % pcfmt(nump2, numdeltas)) | |||
|
355 | warning: unwrapped ui message | |||
|
356 | mercurial/commands.py:0: | |||
|
357 | > cmd, ext, mod = extensions.disabledcmd(ui, name, ui.config('ui', 'strict')) | |||
|
358 | warning: line over 80 characters | |||
|
359 | mercurial/commands.py:0: | |||
|
360 | > except: | |||
|
361 | warning: naked except clause | |||
|
362 | mercurial/commands.py:0: | |||
|
363 | > revs, checkout = hg.addbranchrevs(repo, other, branches, opts.get('rev')) | |||
|
364 | warning: line over 80 characters | |||
|
365 | mercurial/commands.py:0: | |||
|
366 | > ui.write("common heads: %s\n" % " ".join([short(n) for n in common])) | |||
|
367 | warning: unwrapped ui message | |||
|
368 | mercurial/commands.py:0: | |||
|
369 | > ui.write("match: %s\n" % m(d[0])) | |||
|
370 | warning: unwrapped ui message | |||
|
371 | mercurial/commands.py:0: | |||
|
372 | > ui.write('deltas against prev : ' + fmt % pcfmt(numprev, numdeltas)) | |||
|
373 | warning: unwrapped ui message | |||
|
374 | mercurial/commands.py:0: | |||
|
375 | > ui.write('path %s\n' % k) | |||
|
376 | warning: unwrapped ui message | |||
|
377 | mercurial/commands.py:0: | |||
|
378 | > ui.write('uncompressed data size (min/max/avg) : %d / %d / %d\n' | |||
|
379 | warning: unwrapped ui message | |||
|
380 | mercurial/commands.py:0: | |||
|
381 | > Every ID must be a full-length hex node id string. Returns a list of 0s and 1s | |||
|
382 | warning: line over 80 characters | |||
|
383 | mercurial/commands.py:0: | |||
|
384 | > remoteurl, branches = hg.parseurl(ui.expandpath(remoteurl), opts.get('branch')) | |||
|
385 | warning: line over 80 characters | |||
|
386 | mercurial/commands.py:0: | |||
|
387 | > ui.write("digraph G {\n") | |||
|
388 | warning: unwrapped ui message | |||
|
389 | mercurial/commands.py:0: | |||
|
390 | > ui.write("internal: %s %s\n" % d) | |||
|
391 | warning: unwrapped ui message | |||
|
392 | mercurial/commands.py:0: | |||
|
393 | > ui.write("standard: %s\n" % util.datestr(d)) | |||
|
394 | warning: unwrapped ui message | |||
|
395 | mercurial/commands.py:0: | |||
|
396 | > ui.write('avg chain length : ' + fmt % avgchainlen) | |||
|
397 | warning: unwrapped ui message | |||
|
398 | mercurial/commands.py:0: | |||
|
399 | > ui.write('case-sensitive: %s\n' % (util.checkcase('.debugfsinfo') | |||
|
400 | warning: unwrapped ui message | |||
|
401 | mercurial/commands.py:0: | |||
|
402 | > ui.write('compression ratio : ' + fmt % compratio) | |||
|
403 | warning: unwrapped ui message | |||
|
404 | mercurial/commands.py:0: | |||
|
405 | > ui.write('delta size (min/max/avg) : %d / %d / %d\n' | |||
|
406 | warning: unwrapped ui message | |||
|
407 | mercurial/commands.py:0: | |||
|
408 | > ui.write('exec: %s\n' % (util.checkexec(path) and 'yes' or 'no')) | |||
|
409 | warning: unwrapped ui message | |||
|
410 | mercurial/commands.py:0: | |||
|
411 | > ui.write('flags : %s\n' % ', '.join(flags)) | |||
|
412 | warning: unwrapped ui message | |||
|
413 | mercurial/commands.py:0: | |||
|
414 | > ui.write('format : %d\n' % format) | |||
|
415 | warning: unwrapped ui message | |||
|
416 | mercurial/commands.py:0: | |||
|
417 | > ui.write('full revision size (min/max/avg) : %d / %d / %d\n' | |||
|
418 | warning: unwrapped ui message | |||
|
419 | mercurial/commands.py:0: | |||
|
420 | > ui.write('revision size : ' + fmt2 % totalsize) | |||
|
421 | warning: unwrapped ui message | |||
|
422 | mercurial/commands.py:0: | |||
|
423 | > ui.write('revisions : ' + fmt2 % numrevs) | |||
|
424 | warning: unwrapped ui message | |||
|
425 | warning: unwrapped ui message | |||
|
426 | mercurial/commands.py:0: | |||
|
427 | > ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no')) | |||
|
428 | warning: unwrapped ui message | |||
332 | mercurial/commandserver.py:0: |
|
429 | mercurial/commandserver.py:0: | |
333 | > # the ui here is really the repo ui so take its baseui so we don't end up |
|
430 | > # the ui here is really the repo ui so take its baseui so we don't end up | |
334 | warning: line over 80 characters |
|
431 | warning: line over 80 characters |
General Comments 0
You need to be logged in to leave comments.
Login now