##// END OF EJS Templates
Detect git patches in patchbomb makepatch function
Brendan Cully -
r3054:51b7f792 default
parent child Browse files
Show More
@@ -140,7 +140,9 b' def patchbomb(ui, repo, *revs, **opts):'
140 if line.startswith('#'):
140 if line.startswith('#'):
141 if line.startswith('# Node ID'): node = line.split()[-1]
141 if line.startswith('# Node ID'): node = line.split()[-1]
142 continue
142 continue
143 if line.startswith('diff -r'): break
143 if (line.startswith('diff -r')
144 or line.startswith('diff --git')):
145 break
144 desc.append(line)
146 desc.append(line)
145 if not node: raise ValueError
147 if not node: raise ValueError
146
148
General Comments 0
You need to be logged in to leave comments. Login now