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

Re: Is it possible to synchronize unpacked sources with its binary container?

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-22 09:58:43 CEST

On May 22, 2007, at 02:49, Richard Bos wrote:

>> You could get the behavior you want with a post-commit
>> hook (that would have to handle the case of content.xml
>> already existing, the delete of an odt file, etc)
>
> Would this method still keep the same user assigned to the
> modification? I don't think as the post-commit script is
> executed on the server by the user that owns the svn server
> process. I would like to keep the person that modifies
> the document, for annotation....

That can be done. There would probably be a "user" that the post-
commit script uses to commit changes. After the commit, you can use
"svn propset svn:author $AUTHOR --revprop -r $REV file://$REPO" to
set the author of the new revision to the same as the author who
committed the original revision. You would have to install a pre-
revprop-change hook which allows the svn:author property to be
changed. For security, you should probably restrict these changes
only to the "user" under which the post-commit script operates.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 22 09:59:19 2007

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