1. Robot Mirror
  2. bugs.python.org

Commits

martin.v.loewis  committed a0741dd

Skip over patches missing Index: lines
Fix logic for storing n/a.

  • Participants
  • Parent commits c247563
  • Branches default

Comments (0)

Files changed (1)

File scripts/addpatchsets

View file
     split = engine.SplitPatch(data)
     # Check whether a prefix needs to be added to each file path
     prefixes = None
+    if not split:
+        # Missing Index: line in patch
+        return None, None
     for filename, data in split:
         c.execute('select prefix from fileprefix where suffix=%s', (filename,))
         res = c.fetchall()
     data = engine.UnifyLinebreaks(data)
     branch, bases = find_bases(data, int(f._revision))
     if not branch:
-        if nodeid < 15000:
+        if f.id < 15000:
             f._patchset = "n/a"
             f.save()
+            transaction.commit()
         continue
 
     blob = gae_db.Blob(data)