[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: Richard Cook <awhig_at_yahoo.com>
Date: Fri, 4 Jan 2008 12:23:55 -0800 (PST)

Hi Stefan, Thanks for the tips. I did try right click dragging the tag folder to the branches folder. This unfortunately deleted my folder from the tag and moved it to the branches directory, so I lost might tag. I really want to leave the tag intact. So I ended up dragging it back to the tag directory and then right clicking on the tag folder and did a "Copy to..." and copied to a directory under the branches directory. This did the trick. Very easy. Actually, it's quite obvious when using the repo browser. Unfortunately I was using the branch/tag dialogs, which seems to be the wrong place to be doing this. Thanks, Rich ----- Original Message ---- From: Stefan Küng <tortoisesvn@gmail.com> To: users@tortoisesvn.tigris.org Sent: Friday, January 4, 2008 12:01:27 PM Subject: Re: How to properly create a new branch from an existing tag? 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 tag. > 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. Stefan -- ___ oo // \\ "De Chelonian Mobile" (_,\/ \_/ \ TortoiseSVN \ \_/_\_/> The coolest Interface to (Sub)Version Control /_/ \_\ http://tortoisesvn.net --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on 2008-01-04 21:24:06 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.