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

Re: Setting author at commit time?

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-12-04 05:54:01 CET

On Dec 3, 2006, at 19:18, Bob Proulx wrote:

> I am wanting to do some automated sync'ing of files between subversion
> and another system. How can I set the author for subversion?
>
> co -p -kk /path/to/rcs/somefile1,v > somefile1
> co -p -kk /path/to/rcs/somefile2,v > somefile2
> svn commit -F log-message.txt
>
> And of course I can fudge the timestamps using libfaketime or
> datefudge or other ways. I can set the timestamp fine. I also know
> the author name for the commit. But what I don't know is how to pass
> the author name on through to subversion so that it commits using
> the original author and not the current process owner.
>
> Of course I can dump the database (its private at that point), process
> it, and load it again into a pristine area now with the right
> committer. But that is really, really heavy when I only need to set
> the latest commit, it would be n^2 for the number of revisions in that
> case.
>
> Any hints on how to fake the committer at commit time?

You can "fake" any Subversion property right after commit time, if
you install a pre-revprop-change hook to allow such a thing.

svn propset svn:author --revprop -r 42 "bob"
svn propset svn:date --revprop -r 42 "2006-02-20T04:54:45.847208Z"

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 4 05:54:40 2006

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