Commits

martin.v.loewis  committed c45bd50

Arrange to mark patches as unbaseable.

  • Participants
  • Parent commits 1a7e41b

Comments (0)

Files changed (2)

File extensions/rietveldlink.py

 def rietveldlink(request, issueid, fileid):
-    if request.client.db.file.get(fileid, 'patchset'):
+    patchset = request.client.db.file.get(fileid, 'patchset'):
+    if patchset and patchset != 'n/a':
         return '/review/%s/show' % issueid
     return ""
 

File scripts/addpatchsets

     data = engine.UnifyLinebreaks(data)
     branch, bases = find_bases(data, int(f._revision))
     if not branch:
+        if nodeid < 15000:
+            f._patchset = "n/a"
+            f.save()
         continue
 
     blob = gae_db.Blob(data)