From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
The current logic imports the whole quilt patch as description - the changes
themselves are correctly applied, luckily, but the description must be fixed up
by hand.
So, detect "Index: " lines as patch start. I've heard rumors that also
Subversion generates this format, so we become compatible with it, too.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
help = 'show the diff stat',
action = 'store_true'),
make_option('-b', '--branch',
- help = 'use BRANCH instead of the default one')]
- action = 'store_true'),
+ help = 'use BRANCH instead of the default one'),
make_option('--bare',
help = 'bare file names (useful for scripting)',
action = 'store_true')]
# the rest of the patch description
for line in f:
- if re.match('---\s*$', line) or re.match('diff -', line):
+ if re.match('---\s*$', line) or re.match('diff -', line) or \
+ re.match('^Index: ', line):
break
else:
descr += line