Mercurial > hg > hq
changeset 11:f7fee857c69a
remove more crap
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 12 Mar 2013 14:43:25 -0700 |
parents | 5ea675cfecd9 |
children | 92484d1db1b2 |
files | hq/main.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)