def find_bzr(path=None):
    if not path:
        path = os.getcwd()
    if not os.path.exists(path):
        return None
    while path:
        if os.path.exists(os.path.join(path, '.bzr')) or \
           os.path.exists(os.path.join(path, '.bzrignore')):
            return os.path.abspath(path)
        else:
            pth = path
            path = os.path.dirname(path)
            if path == pth:
                return None
    return None
Return bzr root directory path, or None.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/scripts/repo.py/find_bzr