Skip to content

Commit 577a7e4

Browse files
committed
Tweaked the bin/commitlog script a bit.
- Legacy-Id: 7296
1 parent 3f55454 commit 577a7e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bin/commitlog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
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])/ \\1/;ta' -e 'P;D' | fold -sw76 | sed -r 's/^([^ ].*)$/ &/' | sed -r 's/^ \* /\n * /'
2+
cur=$(svn info | awk '/^Revision:/ { print $2 }')
3+
svn log $PWD -r ${2:-HEAD}:${1:-$((cur-100))} | 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])/ \\1/;ta' -e 'P;D' | fold -sw76 | sed -r 's/^([^ ].*)$/ &/' | sed -r 's/^ \* /\n * /'
34
echo ""
45
date +" -- Henrik Levkowetz <henrik@levkowetz.com> %d %b %Y %H:%M:%S %z"

0 commit comments

Comments
 (0)