view tests/sitecustomize.py @ 22968:01e98eba3bc1

addchangegroup: get the `node` argument of `incoming` hook from transaction The transaction is now carrying hook-related informations. So we use it to retrieve the `node` argument. This will also carry around all kinds of other useful informations (like: "are we in a bundle2 processing")
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 14 Oct 2014 00:03:03 -0700
parents 0b21ae0a2366
children 031947baf4d0
line wrap: on
line source

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