Commits

Anonymous committed 1f35702

Add last patch in patchset correctly.

Comments (0)

Files changed (1)

scripts/addpatchsets

             continue
         if filename:
             diff.append(line)
+    # add last patch
+    if filename:
+        chunks = patching.ParsePatchToChunks(diff)
+        if not chunks:
+            return None
+        patches.append((filename, ''.join(diff), chunks))
     return patches
 
 def find_bases(data):
 c.execute("select id from _status where _name='closed'")
 closed = c.fetchone()[0]
 
-#import pdb;pdb.set_trace()
 if len(sys.argv) == 2:
     query = File.objects.filter(id = sys.argv[1])
 else:
     nodeid = c.fetchone()
     if not nodeid:
         if verbose:
-            print "File",nodeid,"is detached"
+            print "File",f.id,"is detached"
         continue
     nodeid = nodeid[0]
     roundup = RoundupIssue.objects.get(id=nodeid)