in mozci/util/hgmo.py [0:0]
def parse_bugs(s, conservative=False):
m = RE_SOURCE_REPO.search(s)
if m:
source_repo = m.group(1)
if source_repo.startswith("https://github.com/"):
conservative = True
if s.startswith("Bumping gaia.json"):
conservative = True
bugzilla_re = BUG_CONSERVATIVE_RE if conservative else BUG_RE
bugs_with_duplicates = [int(m[1]) for m in bugzilla_re.findall(s)]
bugs_seen = set()
bugs_seen_add = bugs_seen.add
bugs = [x for x in bugs_with_duplicates if not (x in bugs_seen or bugs_seen_add(x))]
return [bug for bug in bugs if bug < 100000000]