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

Re: Making a log of all files added/modified

From: Marc Haisenko <haisenko_at_webport.de>
Date: 2004-07-19 10:02:54 CEST

On Friday 16 July 2004 17:49, Andras, Vass non Unisys wrote:
> What I would really need is a list of revisions from X to Y, the
> usernames+log messages for these revisions, the list of files modified,
> added and deleted. (With the info whether it was added/modified/deleted).
> So a diff with header info would only be part of the solution -
> right now, I can use 'svn log -v' for this very well, except for one case:
> when a directory is added from another branch.
>
> Andras

For the future, I'd suggest setting up a post commit hook that sends an e-mail
to an internal mailing list. Our commit e-mails have the subject "[SVN]
<user> committed revision <revision>", the body is the log message from that
user and a list of the changes.

Change the [SVN] to something unique for you so that you can easily filter it
in you mailer and sort those mails into a separate mail folder. This make it
very easy to search for changes/log messages.

Our script looks like this:
---[SNIP]---
#!/bin/bash

REPOS="$1"
REV="$2"

TEMPFILE=`mktemp /tmp/postcommit.XXXXXX`

AUTHOR=`svnlook author "$1" -r $2`
if [ -z "$AUTHOR" ] ; then
    AUTHOR="<Unknown>" ;
fi

svnlook log "$1" >$TEMPFILE
echo "" >>$TEMPFILE
svnlook changed "$1" >>$TEMPFILE

cat $TEMPFILE | mail -s "[SVN] $AUTHOR committed revision $REV" \
        mailinglist@server
rm -f $TEMPFILE
---[SNIP]---

On a sidenote, maybe we should do "svnlook log $REPOS -r $REV" and "svnlook
changed $REPOS -r $REV" ? And ignore the fact that the mailing line is an
entry to the Useless Use of Cat Award ;-)

C'ya,
        Marc

-- 
Marc Haisenko
Systemspezialist
Webport IT-Services GmbH
mailto: haisenko@webport.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 19 09:59:47 2004

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

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