contrib/patchbomb
changeset 1135 e455d91f6259
parent 1118 63b5f68d8167
child 1136 d451888505d7
equal deleted inserted replaced
1134:2cd33ea2f66b 1135:e455d91f6259
   105         return s
   105         return s
   106 
   106 
   107     def makepatch(patch, idx, total):
   107     def makepatch(patch, idx, total):
   108         desc = []
   108         desc = []
   109         node = None
   109         node = None
       
   110         body = ''
   110         for line in patch:
   111         for line in patch:
   111             if line.startswith('#'):
   112             if line.startswith('#'):
   112                 if line.startswith('# Node ID'): node = line.split()[-1]
   113                 if line.startswith('# Node ID'): node = line.split()[-1]
   113                 continue
   114                 continue
   114             if line.startswith('diff -r'): break
   115             if line.startswith('diff -r'): break