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

Re: Modifying file properties in pre-commit

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Sun, 14 Sep 2008 13:56:20 -0400

Lira Olavo wrote:
> My question is: If I freeze with the -r or with the PEG (@xxx as
> I'm 1.5.2) inside the TAG I don't think it would "break the checkout
> right? Is it safe to do it?

No. You should never change a transaction in pre-commit. However, you could
have a *post-commit* trigger that watches for a commit in the tags folder, then
walks that tag to see if there are any un-pegged externals and performs a
propedit to peg those externals at the last revision.

This is slightly tricky because svn:externals is a versioned property, which
means you have to create a new commit in order to change it. Since you are
using 1.5.2, you can use `svnmucc propset`, which directly manipulates the
server without a working copy.

HTH

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-14 19:57:06 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.