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

Re: How to properly create a new branch from an existing tag?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 04 Jan 2008 21:01:27 +0100

Richard Cook wrote:

> My co-worker created a tag. We then assumed that we could create a
> branch at some point in the future by creating a tag referencing the
> Revision number of the tag. If I look in the repo-browser, Revsion # is
> 1110 next to the tag name. So when I choose Branch/Tag in TortoiseSVN, I
> select "Specific Revision in repository", and type in 1110. FYI, if I
> click the "..." button, I do not see this revision # listed in the log.
> The revision #'s go from 1109 and then jumps to 1111.
> When I then compare the newly created branch to the tag, there are
> differing files. This does not seem correct to me. Am I doing something
> wrong here?

The branch/tag dialog always creates a branch/tag from your working
copy. That would only work if you have checked out a working copy of the

> One thing that may be relevant. My co-worker had some files that were
> modified in his working copy, and were not checked in. When he created
> the tag, he did so from his working copy. If you look at the actions for
> revision 1110, you can see that these files are listed as being modified
> (they are listed as revisions 1108 and 1109). These exact files are the
> ones that are differing when comparing the tag and the new branch. I
> think if he had checked these files in, and then did a tag, we would not
> be having this problem. Unfortunately, he can not check those files in
> for a few reasons (they are config files).

When you create a branch tag and select "Working copy" as the revision,
then all local modifications on the working copy go into the new
branch/tag. If he did that, then your tag contains his local modifications.

> What is the proper way to create a branch from a tag? I can not find any
> documentation for this?

There are several ways to do this. But the easiest might be to simply
drag the tag in the repository browser to the branch (right drag if you
want to give the branch another name than the tag has).
You can do this either from HEAD or from the revision the tag was
created. Since you shouldn't have any commits on the tag, it doesn't
matter whether you create the branch from the tag at HEAD or the
revision it was created.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-01-04 21:13:23 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.