[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Diffs in log messages [was: svn commit: propchange - r34067 - svn:log]

From: Peter Samuelson <peter_at_p12n.org>
Date: Thu, 6 Nov 2008 19:58:18 -0600

| #!/bin/bash
| # Write a log message template, listing the files that would be committed.
| FILES=`svn st "$@" | grep "^[^?]" | grep -v "^ L" | sed 's/^.......//' | sort`
                                                 or | cut -c8- | sort

| echo
| for FILE in $FILES; do
| echo "* $FILE"
| # Find the names of the functions affected, and list them in parentheses.
| svn diff --diff-cmd diff -x '-U0 -p' $FILE | sed -e "s/^@@ [^@]* @@ .*\<\([A-Za-z_][A-Za-z0-9_]*\) *(.*/ (\1): /" -e "t" -e "d" | uniq
| echo
| done

echo '--This line, and those below, will be ignored--'

| # (when in sorted order) svn diff -x -up "$@"
| for FILE in $FILES; do
| svn diff --diff-cmd diff -x -up $FILE
| done

Why not just call svn diff with $FILES ?

-- 
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/

Received on 2008-11-07 03:00:02 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.