Skip to content

Commit

Permalink
- add mr --release-project option for kgraft updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Dec 12, 2014
1 parent 7ca0b2d commit 9cddc53
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.150
- add "osc api --edit" option to be able to edit some meta files directly
- follow the request order of the api (sorting according to priorization)
- add mr --release-project option for kgraft updates

0.149
- removed "--diff" option from the "createrequest" command
Expand Down
8 changes: 8 additions & 0 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2910,6 +2910,8 @@ def do_createincident(self, subcmd, opts, *args):
help='Use this attribute to find default maintenance project (default is OBS:MaintenanceProject)')
@cmdln.option('-m', '--message', metavar='TEXT',
help='specify message TEXT')
@cmdln.option('--release-project', metavar='RELEASEPROJECT',
help='Specify the release project')
@cmdln.option('--no-cleanup', action='store_true',
help='do not remove source project on accept')
@cmdln.option('--cleanup', action='store_true',
Expand All @@ -2933,6 +2935,9 @@ def do_maintenancerequest(self, subcmd, opts, *args):
osc maintenancerequest [ SOURCEPROJECT [ SOURCEPACKAGES RELEASEPROJECT ] ]
${cmd_option_list}
"""
#FIXME: the follow syntax would make more sense and would obsolete the --release-project parameter
# but is incompatible with the current one
# osc maintenancerequest [ SOURCEPROJECT [ RELEASEPROJECT [ SOURCEPACKAGES ] ]

args = slash_split(args)
apiurl = self.get_api_url()
Expand Down Expand Up @@ -2961,6 +2966,9 @@ def do_maintenancerequest(self, subcmd, opts, *args):
if source_project.startswith(default_branch):
opt_sourceupdate = 'cleanup'

if opts.release_project:
release_project = opts.release_project

if opts.incident_project:
target_project = opts.incident_project
else:
Expand Down

0 comments on commit 9cddc53

Please sign in to comment.