view tests/test-check-config-hg.t @ 27061:9c75daf89450

lsprof: support PyPy (issue4573) PyPy's _lsprof module doesn't export a "profiler_entry" symbol. This patch treats the symbol as optional and falls back to verifying the attribute is present on the first entry in the collected data as part of validation. There is a chance not every entry will contain the requested sort attribute. But, this patch does unbust lsprof on PyPy for the hg commands I've tested, so I assume it is sufficient. It's certainly better than the ImportError we encountered before. As part of the import refactor, I snuck in the addition of absolute_import.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 21 Nov 2015 23:26:22 -0800
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)