[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: Kevin Wu <kevinwu.chn_at_gmail.com>
Date: Fri, 25 Jun 2010 00:53:16 +0800

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

On Fri, Jun 25, 2010 at 12:45 AM, David Weintraub <qazwart_at_gmail.com> wrote:

> I think I misunderstood your earlier question.
>
> You want to display the user who committed the code on the webpage for
> that particular build?
>
> Hudson currently doesn't do that. However, Hudson must know the name
> of the user who did the commit because Hudson will send that person an
> email when they break the build.
>
> -------------
>
> I can think of a way around the issue. Hudson does retrieve the
> SVN_REVISION environment variable. You can use this in your Ant script
> to create a file via the <touch> task that contains the user name who
> committed the change. This could be placed in a particular directory.
> In Hudson job, you tell Hudson to archive any files in that directory.
>
> The result is that the name of one of your archive files will contain
> the name of the user who did the commit.
>
>
> --
> David Weintraub
> qazwart_at_gmail.com
>

-- 
Best wishes,
Kevin Wu
Received on 2010-06-24 18:53:56 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.