[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: ycdtosa <ycdtosa_at_eupla.unizar.es>
Date: 2005-01-31 21:24:42 CET

William Nagel wrote:

>> 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
>

Yeah, that too.
Even so, i think i got the revision number wrong, and we both meant
       $ svn checkout -r 101
svn://server/project/branches/test/jeff-whatever-private-branch

since the jeff-whatever-private-branch does does not exist at revision 102,
but it was last seen at revision 101

>>
>> 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.
>
OK. i got the point. I was thinking on the same approach but i didn't
feel confident enough
and wanted some feedback on the subject.

> -Bill Nagel
>
>
Thanks a lot Bill.

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