def _get(self, *cmd, **kwds):
        silent = kwds.pop("silent", False)
        returncodes = kwds.pop("returncodes", (0,))
        kwds["stdout"] = subprocess.PIPE
        kwds["stderr"] = subprocess.STDOUT
        p = subprocess.Popen(cmd, **kwds)
        (out, err) = p.communicate()
        if err or p.returncode not in returncodes:
            if err:
                print>>sys.stderr, "hg: " + err.strip()
            msg = "%s %s failed with error code %d" % (cmd[0], cmd[1], p.returncode)
            raise RemoteHGError(msg)
        return out.splitlines()
Check if a given URL is in being monitored by uptime
dataset/ETHPy150Open dubiousjim/yagh/src/remote-hg.py/HgGitCheckout._get--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/uptime.py/check_exists