| |
@@ -11863,15 +11863,26 @@
|
| |
context.session.assertPerm('tag')
|
| |
return writeInheritanceData(tag, data, clear=clear)
|
| |
|
| |
- def getFullInheritance(self, tag, event=None, reverse=False):
|
| |
+ def getFullInheritance(self, tag, event=None, reverse=False, **kwargs):
|
| |
"""
|
| |
:param int|str tag: tag ID | name
|
| |
:param int event: event ID
|
| |
:param bool reverse: return reversed tree (descendants instead of
|
| |
parents)
|
| |
+ :param dict stops: SHOULD NOT BE USED, BACKWARDS COMPATIBLE ONLY
|
| |
+ :param dict jumps: SHOULD NOT BE USED, BACKWARDS COMPATIBLE ONLY
|
| |
|
| |
:returns: list of node dicts
|
| |
"""
|
| |
+ # Backwards-compatible with the removed options
|
| |
+ for k, v in kwargs.items():
|
| |
+ if k in ('stops', 'jumps'):
|
| |
+ if v:
|
| |
+ raise koji.ParameterError("%s option has been removed since 1.26" % k)
|
| |
+ else:
|
| |
+ raise koji.ParameterError(
|
| |
+ "getFullInheritance() got an unexpected keyword argument '%s'" % k)
|
| |
+
|
| |
if not isinstance(tag, int):
|
| |
# lookup tag id
|
| |
tag = get_tag_id(tag, strict=True)
|
| |
fixes: #3054