#!/usr/bin/env python
#-*- coding: utf-8 -*-
# hgconsole.py
from os import system
if __name__ == '__main__':
end = False
while not end:
cmd = raw_input('>> ')
end = cmd.lower() == 'quit'
if cmd and not end: system('hg ' + cmd)