Sync mozautomation
authorGregory Szorc <gps@mozilla.com>
Wed, 22 Jan 2014 15:20:07 -0800
changeset 93 ad8791a58e6e
parent 92 45ce73b8f29e
child 94 a62e2b9c9064
push id67
push usergszorc@mozilla.com
push dateWed, 22 Jan 2014 23:21:13 +0000
Sync mozautomation
mozautomation/commitparser.py
--- a/mozautomation/commitparser.py
+++ b/mozautomation/commitparser.py
@@ -24,14 +24,15 @@ BUG_RE = re.compile(
            (?:\s*\#?)(\d+)
          )''', re.I | re.X)
 
 REVIEW_RE = re.compile(r'[ra][=?]+(\w[^ ]+)')
 
 LIST_RE = re.compile(r'[;\.,\+\/\\]')
 
 def parse_bugs(s):
-    return [int(m[1]) for m in BUG_RE.findall(s)]
+    bugs = [int(m[1]) for m in BUG_RE.findall(s)]
+    return [bug for bug in bugs if bug < 100000000]
 
 def parse_reviewers(s):
     for r in REVIEW_RE.findall(s):
         for part in LIST_RE.split(r):
             yield part.strip('[](){}')