# HG changeset patch # User Jeff Hammel # Date 1363124605 25200 # Node ID f7fee857c69ac3ae881c3dba6d823c5a09d0adc4 # Parent 5ea675cfecd9f078aeac643c501f4c088442cbd4 remove more crap diff -r 5ea675cfecd9 -r f7fee857c69a hq/main.py --- a/hq/main.py Tue Mar 12 14:29:15 2013 -0700 +++ b/hq/main.py Tue Mar 12 14:43:25 2013 -0700 @@ -19,7 +19,7 @@ mercurial queue extension front-end policy manager """ - def __init__(self, queue_host=None, network=True, root=None, binary='hg'): + def __init__(self, network=True, root=None, binary='hg'): """initialize global options""" # TODO: look at hgrc file # for [defaults] repository_host @@ -28,8 +28,6 @@ # check for network self.network = network - self.queue_host = queue_host - if root is None: root = call(['hg', 'root']).strip() self.root = root @@ -135,6 +133,7 @@ """perform a command in the patch repository""" call(command, cwd=self.directory()) + def main(args=sys.argv[1:]): parser = CommandParser(HQ) options, args = parser.parse_args(args)