def run_hg_cmd(server, cmd_string):
    server.run_command(cmd_string)
    text, exit_code = server.receive_data()
    return text, exit_code
Runs a Mercurial command through the given command server.
dataset/ETHPy150Open SublimeText/SublimeHg/sublime_hg.py/run_hg_cmd