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
starting dirs & files:
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/scripts/repo.py/find_bzr--crossover with--dataset/ETHPy150Open kenfar/DataGristle/scripts/tests/test_gristle_dir_merger_cmd.py/TestMatchOnAndMD5.test_unique_files_and_onmatch_is_useboth