tests/sitecustomize.py
author Sean Farley <sean.michael.farley@gmail.com>
Thu, 20 Feb 2014 00:46:13 -0600
changeset 20539 aa021ece4506
parent 14971 0b21ae0a2366
child 24505 031947baf4d0
permissions -rw-r--r--
templater: shorten pure integers Originally, the addition of the 'shorten' template function in 9c6b86dd2ed2 would not consider pure integers for shortening. This patch considers two simple cases: when the integer starts with zero (which is parsed by Mercurial as a hash first) and when the integer is larger than the tip (obviously not a rev).

try:
    import coverage
    getattr(coverage, 'process_startup', lambda: None)()
except ImportError:
    pass