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

Re: Setting Properties on Commit

From: Patrick Smears <patrick.smears_at_ensoft.co.uk>
Date: 2004-11-30 17:18:42 CET

On Tue, 30 Nov 2004 trlists@clayst.com wrote:

> So I am checking to see if I can save actual filesystem timestamps on
> every commit.
>
> I have a wrapper script that will do this by doing the commit then
> using svnlook to find out what changed, taking all the items with 'A'
> or 'U' in the first column, and doing an svn propset to save the
> timestamps for those files and directories as a property.
>
> The problem is this property is set only in the WC and requires another
> commit to go to the repository.
>
> If I do it in a post-commit hook I will have the same issue as I do
> with a wrapper script.
>
> If I do it in a pre-commit hook I can't (as far as I can tell) use
> svnlook to get the file list, as at that point the commit has not been
> done.
>
> Is there any way around this, or does it require two commits to assign
> a property value to each committed file using svnlook?

You could use 'svn status' to determine what *will* be committed, and then
set the properties on those files prior to the actual commit. Would that
work for you?

Patrick

-- 
The easy way to type accents in Windows: http://www.frkeys.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 30 17:21:38 2004

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