From 6cfca0508663b9cff02fb97e3eeae561ab4849e1 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Tue, 2 Feb 2010 13:34:12 +0100 Subject: [PATCH] remove broken -l option to osc sr --- osc/commandline.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 670588fe..70390cbf 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -651,8 +651,6 @@ class Osc(cmdln.Cmdln): help='never touch source package on accept (will break source links)') @cmdln.option('-d', '--diff', action='store_true', help='show diff only instead of creating the actual request') - @cmdln.option('-l', '--list', action='store_true', - help='show submitrequests. Same as \'osc req list -M -a -t submit -D 0\'') @cmdln.option('--yes', action='store_true', help='proceed without asking.') @cmdln.alias("sr") @@ -673,17 +671,6 @@ class Osc(cmdln.Cmdln): ${cmd_option_list} """ - if opts.list: - opts.state = "" - opts.user = "" - opts.all = True - opts.brief = False - opts.unified = False - opts.type = "submit" - opts.mine = True - opts.days = conf.config['request_list_days'] - return self.do_request('list', opts, *args) - src_update = conf.config['submitrequest_on_accept_action'] or None # we should check here for home::branch and default to update, but that would require OBS 1.7 server if opts.cleanup: @@ -700,10 +687,9 @@ class Osc(cmdln.Cmdln): if args and args[0] in oldcmds: print "************************************************************************" print "* WARNING: It looks that you are using this command with a *" - print "* deprecated syntax (maybe) ! *" - print "* Please run \"osc sr --help\" and \"osc req --help\" *" + print "* deprecated syntax. *" + print "* Please run \"osc sr --help\" and \"osc rq --help\" *" print "* to see the new syntax. *" - print "* E.g. \"osc sr -l\" is shortcut for \"osc req list -M -a -t submit -D 0\" *" print "************************************************************************" if args[0] == 'create': args.pop(0)