Skip to content

Commit 068af80

Browse files
committed
Improved commit log extraction script.
- Legacy-Id: 6947
1 parent bf05a61 commit 068af80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/commitlog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
2-
svn log $PWD -r ${2:-HEAD}:${1:-BASE} | sed -n -e 's/^/ * /' -e '1,/^ \* Set version info and settings back to development mode/p' | egrep -v -- '^ \* (----------|r[0-9]+ |$)' | head -n -1 | tac | sed 's/$/\n/' | fold -s -w 76 | sed -r 's/^([^ ])/ \1/'
2+
svn log $PWD -r ${2:-HEAD}:${1:-BASE} | sed -n -e '1,/^ \* Set version info and settings back to development mode/p' | sed -r 's/^(----------|r[0-9]+).*$/\n/' | sed '/./,/^$/!d' | sed '1,/./s/^/ * /;/^$/,/./s/^/ * /;/^ \* $/d' | sed -e :a -e '$!N;s/\n[A-Za-z0-9]/ /;ta' -e 'P;D' | fold -sw76 | sed -r 's/^([^ ].*)$/ &/' | sed -r 's/^ \* /\n * /'
33
date +" -- Henrik Levkowetz <henrik@levkowetz.com> %d %b %Y %H:%M:%S %z"

0 commit comments

Comments
 (0)