def detect_hg_repository(repodir='.'):
    for fname in os.listdir(repodir):
        if fname == '.hg':
            fullname = os.path.join(repodir, fname)
            st = os.stat(fullname)
            if stat.S_ISDIR(st.st_mode):
                return True
    return False
To implement a floating ip, an ip static nat is configured in the
dataset/ETHPy150Open ravello/testmill/lib/testmill/versioncontrol.py/detect_hg_repository--crossover with--dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/cisco/cfg_agent/device_drivers/asr1k/asr1k_routing_driver.py/ASR1kRoutingDriver._asr_do_add_floating_ip