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

Setting Properties on Commit

From: <trlists_at_clayst.com>
Date: 2004-11-30 17:06:28 CET

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?

Thanks,

--
Tom
---------------------------------------------------------------------
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:12:01 2004

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.