view tests/test-check-config-hg.t @ 26032:a3d5da8b641e

reachableroots: bail if integer object cannot be allocated This patch also replaces Py_XDECREF() by Py_DECREF() because we known "val" and "p" are not NULL. BTW, we can eliminate some of these allocation and error handling of int objects if the internal "seen" array has more information. For example, enum { SEEN = 1, ROOT = 2, REACHABLE = 4 }; /* ... build ROOT mask from roots argument ... */ if (seen[revnum + 1] & ROOT) { /* instead of PySet_Contains(roots, val) */ >From my quick hack, it is 2x faster.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 14 Aug 2015 12:31:56 +0900
parents 8c1d7a0e737b
children 9c98fe1416c2
line wrap: on
line source

#require test-repo

  $ cd "$TESTDIR"/..

New errors are not allowed. Warnings are strongly discouraged.

  $ hg files "set:(**.py or **.txt) - tests/**" | sed 's|\\|/|g' |
  >   xargs python contrib/check-config.py
  undocumented: convert.cvsps.cache (bool) [True]
  undocumented: convert.cvsps.fuzz (str) [60]
  undocumented: convert.cvsps.mergefrom (str)
  undocumented: convert.cvsps.mergeto (str)
  undocumented: convert.git.remoteprefix (str) ['remote']
  undocumented: convert.git.similarity (int) [50]
  undocumented: convert.hg.clonebranches (bool)
  undocumented: convert.hg.ignoreerrors (bool)
  undocumented: convert.hg.revs (str)
  undocumented: convert.hg.saverev (bool)
  undocumented: convert.hg.sourcename (str)
  undocumented: convert.hg.startrev (str)
  undocumented: convert.hg.tagsbranch (str) ['default']
  undocumented: convert.hg.usebranchnames (bool) [True]
  undocumented: convert.localtimezone (bool)
  undocumented: convert.p4.startrev (str)
  undocumented: convert.skiptags (bool)
  undocumented: convert.svn.debugsvnlog (bool) [True]
  undocumented: convert.svn.startrev (str)