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

Re: Tagging, switching, and messing up the tag

From: Bryan Donlan <bdonlan_at_gmail.com>
Date: 2005-01-12 18:42:59 CET

On Wed, 12 Jan 2005 17:42:26 +0100, Andrea Carpani
<andrea.carpani@criticalpath.net> wrote:
> I have a repository and I've made a tag by copying to a tags
> subdirectory the current trunk:
> svc ci
> svn copy -m "Tagging release 1.5" . http://server/repos/project/tags/1.5
> I must have inadvertently switched the wc from trunk to "tags/1.5" some
> time in the past so that all subsequent modifications that made up
> tags/1.6 and tags/1.7 are based on 1.5 and not on trunk:
> [source code modifications]
> svn ci
> svn copy -m "Tagging release 1.6" . http://server/repos/project/tags/1.6
> [source code modifications]
> svn ci
> svn copy -m "Tagging release 1.7" . http://server/repos/project/tags/1.7
> "trunk" is still at "1.5-pre-various-commits" stage.
> I know I can merge 1.5 -> 1.7 changes onto the trunk, but my 1.5 tag is
> no more the "snapshot" I wanted it to be when I created it.
> Here are my questions:
> 1. How can I get back my original 1.5 tag?

Use svn merge to revert the changes, or recopy it from the old version.

> 2. Is there a way I can create "uncommittable" tags (copies)?

Make a pre-commit script which rejects changes to tags. There may be
one made already somewhere.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 12 18:47:33 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.