1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46: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,7 +1320,8 @@ def get_merge_request_list(apiurl, project, package):
for root in collection.findall('request'):
r = MergeReq()
r.read(root)
requests.append(r)
if r.state not in ['declined', 'deleted']:
requests.append(r)
return requests