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

Re: SV: [TSVN] How to make a Real Tag?

From: Steve Williams <stevewilliams_at_kromestudios.com>
Date: 2005-09-22 09:12:54 CEST

René Vestergaard wrote:
> I understand that, but my question was another.
> Is there any way to avoid/deny that
> a Tag-branches can be commit'ed to (changes that is)?
> One could say: "make tags readonly, after there creation".
> Example:
> It would be very bad (bad = make the software-development unsecure),
> if I have a branch named /MyProjekt1/tags/version_1.0
> and someone does:
> a CheckOut,
> make some changes in the sourcecode and
> do a commit.
> This is unfortunatly possible, because the tag is really a branch.

Did you read chapter 4 of the SVN book?

"If you are administering a repository, there are two approaches you can
take to managing tags. The first approach is “hands off”: as a matter of
project policy, decide where your tags will live, and make sure all
users know how to treat the directories they copy in there. (That is,
make sure they know not to commit to them.) The second approach is more
paranoid: you can use one of the access-control scripts provided with
Subversion to prevent anyone from doing anything but creating new copies
in the tags-area (See Chapter 6, Server Configuration.) The paranoid
approach, however, isn't usually necessary. If a user accidentally
commits a change to a tag-directory, you can simply undo the change as
discussed in the previous section. This is version control, after all."

If you do not trust your committers (if so, why not?), then create a
pre-commit script that enforces the rule that no-one can commit changes
to a URL that has "/tags/" in it.

This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.

To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Sep 22 09:13:26 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.