Is it possible to delete a branch from repository?

Brian de Alwis bsd at cs.ubc.ca
Tue May 19 17:04:39 BST 2009


On 19-May-2009, at 7:25 AM, Olin Shivers wrote:
> Wow, this seems like a show-stopper to me for using bazaar. It means  
> that I
> can't cheaply make a branch under a shared repo, play around with  
> it, then
> kill it after merging any useful elements back into a longer-lived  
> branch --
> or just conclude it was a bad idea and kill it, period.


I believe a stacked branch should do the trick: the additions will be  
stored in the stacked branch.

http://doc.bazaar-vcs.org/latest/en/user-guide/index.html#id68

> [...] stacked branches have additional benefits:
>
>     * The new branch can be in a completely different location to  
> the branch being stacked on.
>     * Deleting the stacked branch really deletes the revisions  
> (rather than leaving them in a shared repository).
>     * Security is improved over shared repositories, because the  
> stacked-on repository can be physically readonly to developers  
> committing to stacked branches.
>
> These benefits make stacked branches ideal for various scenarios  
> including experimental branches and code hosting sites.

-- 
"Amusement to an observing mind is study." - Benjamin Disraeli




More information about the bazaar mailing list