1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-27 15:06:15 +01:00

osc mergereq show: suppress requests which are deleted or declined

This commit is contained in:
Dr. Peter Poeml 2008-03-05 21:41:30 +00:00
parent b4df120e5b
commit f52458fdc5

View File

@ -1320,6 +1320,7 @@ def get_merge_request_list(apiurl, project, package):
for root in collection.findall('request'):
r = MergeReq()
r.read(root)
if r.state not in ['declined', 'deleted']:
requests.append(r)
return requests