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

Re: How to find who commits the build and revision number?

From: David Weintraub <qazwart_at_gmail.com>
Date: Thu, 24 Jun 2010 12:59:01 -0400

On Thu, Jun 24, 2010 at 12:53 PM, Kevin Wu <kevinwu.chn_at_gmail.com> wrote:
> I was thinking of using the svn:author property.
> Is this feasible from the Hudson shell script?
> for example,
> svn propget svn:author [working copy path] --revprop -r$SVN_REVISIOIN


If you're going to use a shell script, it'll look something like this:

$user=$(svn propget svn:author http://subversion/repo/path --revprop
touch <archive_dir>/Committed_User_-_$user

Now, you just set your Hudson job to archive all of the files in
<archive_dir>. Then, a user looking at Hudson should be able to see
the name of the user who did the commit. BTW, if you use the
repository URL instead of the working directory, you won't have to
worry about the location of the working directory.

David Weintraub
Received on 2010-06-24 18:59:42 CEST

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.