comparison tests/test-check-code-hg.t @ 15873:a153a86a472c

tests: keep track of all check-code.py warnings
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 11 Jan 2012 01:56:05 +0100
parents 7299e09a85a2
children afd459933d5f
comparison
equal deleted inserted replaced
15869:e5feebc1f3bb 15873:a153a86a472c
1 $ check_code="$TESTDIR"/../contrib/check-code.py 1 $ check_code="$TESTDIR"/../contrib/check-code.py
2 $ cd "$TESTDIR"/.. 2 $ cd "$TESTDIR"/..
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
10 contrib/perf.py:0: 10 contrib/perf.py:0:
11 > except: 11 > except:
240 > ('U', 'noupdate', None, _('do not update the new working directories')), 240 > ('U', 'noupdate', None, _('do not update the new working directories')),
241 warning: line over 80 characters 241 warning: line over 80 characters
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
249 hgext/patchbomb.py:0: 258 hgext/patchbomb.py:0:
250 > binnode, seqno=idx, total=total) 259 > binnode, seqno=idx, total=total)
326 > ui.write("remote is subset\n") 335 > ui.write("remote is subset\n")
327 warning: unwrapped ui message 336 warning: unwrapped ui message
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
335 mercurial/context.py:0: 432 mercurial/context.py:0:
336 > return self._manifestdelta[path], self._manifestdelta.flags(path) 433 > return self._manifestdelta[path], self._manifestdelta.flags(path)