def using_hg(cwd):
    """Test whether the directory cwd is contained in a mercurial
    repository."""
    try:
        hg_log = shell_out(["hg",   "log"], cwd=cwd)
        return True
    except (CalledProcessError, __HOLE__):
        return False
dataset/ETHPy150Open hayd/pep8radius/pep8radius/vcs.py/using_hg