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

Re: Is there any way to write/commit protect tags?

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-12-03 22:01:09 CET

On Dec 3, 2005, at 13:36, Bernd Bartmann wrote:

> imagine the following situation:
> 1. there are two repositories "enterprise" and "starfleet" both
> containing the usual subdirs "branches", "tags", "trunk"
> 2. "enterprise/tags" contains the tag subdirs "ncc1701" and "ncc1701d"
> 3. "starfleet/trunk" contains an external reference to
> "enterprise/ncc1701d" in a subdir named "enterprise"
>
> In my working copy of "starfleet/trunk" I now accidently change a file
> under the external referenced subdir "enterprise" and run "svn commit
> enterprise". Now the changes are commited to tag, but I would have
> expected that the contents of a tag cannot be changed. So how to
> prevent this situation. Is there any way to write protect the tag in
> the repository?

You can write a pre-commit hook containing the line provided in this
mail:

http://svn.haxx.se/users/archive-2004-08/0589.shtml

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 3 22:04:44 2005

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.