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

Re: Cleaning up tags and branches

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Tue, 1 Apr 2008 14:43:40 -0700

On Tue, Apr 1, 2008 at 2:19 PM, Rush Manbert <rush_at_manbert.com> wrote:

> I have a repository that was migrated from CVS to SVN with the cvs2svn
> script. During the migration, quite a few branches and tags were created.
>
> Now other people are going to start using the repository, and I have
> been asked whether we can delete the branches and tags created during
> the migration. Being quite paranoid about stuff like that, I said no.
> However, I think that it would be okay to create a new directory
> /branches/cvsBranches and copy everything that is currently in /branches
> to there. I would also create /tags/cvsTags and copy everything
> currently in my tags directory to there.
>
> Nothing currently in /tags or /branches is useful going forward, but
> they helped greatly to set up my vendor source branches after the merge
> and I'm scared to just get rid of them. At the same time, we would like
> to start with "clean" /tags and /branches directories and enforce naming
> conventions for their use.
>
> I don't see any downside to moving the directories as outlined above.
> Does anyone else?

Please note that when you remove the directories, they are not removed
forever. They stay in your repository. If you delete the entire tags or
branches directory and at a future date wish that you wanted to see the
deleted code, you can go back to the version of the repository before it was
deleted and revive them.

You can remove the tags and branches and commit the changes, say revision
1000. And you keep on with your development and after revision 5000, you
want to look at the tags that were deleted. You can just use the
URL_at_999syntax to go back to that revision and possibly copy it to a
new branch or
check it out as a working copy etc. The only gotcha is: how do you know when
(which revision) you deleted the tags and branches so that you can go back
to it. Judicious use of 'svn log' coupled with a good commenting policy
(clearly indicate in your message what you are deleting and why) can ease
that pain.

Alternatively you can also copy the existing tags and branches to
tags/cvsTags and branches/cvsBranches. From the point of view of the
repository (size, performance etc), this is pretty much the same as deleting
the tags and branches.

Basically, I guess it all depends on what you prefer :-)

Regards,
-Hari
Received on 2008-04-01 23:44:02 CEST

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.