use os.environ as a fallback for getting special info from hooks, this will allow calling RhodeCode hooks from outside the system eg. via SSH - also verify repo if it's a correct VCS throw 404 error otherwise
"""Various utilities to work with Python < 2.7.Those utilities may be deleted once ``vcs`` stops support for older Pythonversions."""importsysifsys.version_info>=(2,7):unittest=__import__('unittest')else:unittest=__import__('unittest2')