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

Re: private branches: to delete or not to delete

From: William Nagel <bill_at_stagelogic.com>
Date: 2005-01-31 16:50:24 CET

Hi,

> So here comes The Question:
> 1.- Could i delete the private-development-branches from the
> repository?

Definitely

> 2.- Will i lose the logs / history ?

Absolutely not

>
> If i understand how subversion works, even if i delete one of these
> branches...
>
> > svn delete
> svn://sever/project/branches/test/jeff-whatever-private-branch -m
> "delete private branch namethatbranch"
>
> ...the whole repository will be versioned, (lets say we get revision
> 102)
> and i can get back the complete branch (logs, history and so on
> included) with
>
> > svn checkout -r 102 svn://server/project/branches/test/

Yup, or you could just do:

$ svn checkout -r 102
svn://server/project/branches/test/jeff-whatever-private-branch

to get only that branch

>
> And Last Question
> 3.- even if this is true, is this (to delete priv-dev-branches) a good
> practice?

Depends on how often you'll have to take a look at which branches have
existed. If you've deleted a bunch of branches at various revisions
throughout your repository history, getting a list of all the branches
that have existed is non-trivial.

I have a /branches/closed directory where I put the branches when I'm
done with them. That way it's always easy to just take a look in there
and see all the branches I've ever had (using 'svn ls'). Just do:

$ svn move svn://server/project/branches/test/private-branch
svn://server/project/branches/closed/

Doesn't take up any more space in your repository to do it that way,
and since they're in an out of the way directory you won't see them
unless you want to.

-Bill Nagel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 31 16:52:47 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.