git://git.onelab.eu
/
build.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
review changelog formatting & remove white lines
[build.git]
/
module-tools.py
diff --git
a/module-tools.py
b/module-tools.py
index
594f81c
..
1a7ad8e
100755
(executable)
--- a/
module-tools.py
+++ b/
module-tools.py
@@
-380,11
+380,16
@@
that for other purposes than tagging"""%topdir
def unignored_lines (self, logfile):
result=[]
exclude="Tagging module %s"%self.name
def unignored_lines (self, logfile):
result=[]
exclude="Tagging module %s"%self.name
+ white_line_matcher = re.compile("\A\s*\Z")
for logline in file(logfile).readlines():
if logline.strip() == Module.svn_magic_line:
break
for logline in file(logfile).readlines():
if logline.strip() == Module.svn_magic_line:
break
- if logline.find(exclude) < 0:
- result += [ logline ]
+ if logline.find(exclude) >= 0:
+ continue
+ elif white_line_matcher.match(logline):
+ continue
+ else:
+ result.append(logline.strip()+'\n')
return result
def insert_changelog (self, logfile, oldtag, newtag):
return result
def insert_changelog (self, logfile, oldtag, newtag):