tests/README
author Bryan O'Sullivan <bryano@fb.com>
Tue, 15 May 2012 10:46:23 -0700
changeset 16803 107a3270a24a
parent 8936 1de6e7e1bb9f
child 26421 4b0fc75f9403
permissions -rw-r--r--
cleanup: use the deque type where appropriate There have been quite a few places where we pop elements off the front of a list. This can turn O(n) algorithms into something more like O(n**2). Python has provided a deque type that can do this efficiently since at least 2.4. As an example of the difference a deque can make, it improves perfancestors performance on a Linux repo from 0.50 seconds to 0.36.

To run the tests, do:

cd tests/
python run-tests.py

See http://mercurial.selenic.com/wiki/WritingTests for
more information on writing tests.