tests/sitecustomize.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 17 Jan 2013 17:51:30 +0100
changeset 18443 64848f7fb764
parent 14971 0b21ae0a2366
child 24505 031947baf4d0
permissions -rw-r--r--
repoview: protect `base` computation from weird phase root If for some reason the phase roots contains nullid, the set of filtered revs will contains -1. That confuse Mercurial a lot. In particular this corrupt the branchcache. Standard code path does not result in nullid phase root. It can only result from altered `.hg/store/phaseroots` or buggy extension. However better safe than sorry.

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