What is the purpose of `rmbranch` command?

Jelmer Vernooij jelmer at canonical.com
Wed May 16 12:24:01 UTC 2012


On Wed, May 16, 2012 at 02:17:24PM +0200, Vincent Ladeuil wrote:
> >>>>> Jelmer Vernooij <jelmer at vernstok.nl> writes:
> 
> <snip/>
> 
>     >> I don't think Alexander asked for a separate command. Instead, AIUI, his
>     >> point is that it makes little sense to remove the branch and leave an
>     >> otherwise *empty* control directory (not to mention other possible bugs
>     >> when trying to interact with this empty directory).
> 
>     > This isn't always the case though - there can be other colocated
>     > branches, a repository or a working tree. We have no way to remove a
>     > repository for example.
> 
> But in those cases, the control directory (we're all talking about
> '.bzr' not '.bzr/branch' right ?) is therefore not empty.
That makes the behaviour of "bzr rmbranch" fairly unpredictable
though.

I can see the argument for removing a control directory if it's
completely empty, but I think we should be more consistent about that
- "bzr remove-tree" should do the same, and we should have a way to
remove a repository from a control directory.

Cheers,

Jelmer



More information about the bazaar mailing list