From 41f925addc66f0031478ba6d4fccd07b5f9b3325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 19 May 2010 14:12:49 +0200 Subject: [PATCH] allow to set a temporary comment for a review via "osc review new" (Fate #307506) --- osc/commandline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index a119273f..cad40a0d 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1110,6 +1110,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. osc request checkout/co ID osc review accept [-m TEXT] ID osc review decline [-m TEXT] ID + osc review new [-m TEXT] ID # for setting a temporary comment without changing the state ${cmd_option_list} """ @@ -1299,7 +1300,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. state_map = {'accept' : 'accepted', 'decline' : 'declined', 'wipe' : 'deleted', 'revoke' : 'revoked'} # Change review state only if subcmd == 'review': - if cmd in ['accept', 'decline']: + if cmd in ['accept', 'decline', 'new']: r = change_review_state(conf.config['apiurl'], reqid, state_map[cmd], conf.config['user'], '', opts.message or '') print r