What is the purpose of `rmbranch` command?
Vincent Ladeuil
vila+bzr at canonical.com
Wed May 16 12:49:41 UTC 2012
>>>>> Jelmer Vernooij <jelmer at canonical.com> writes:
> 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.
Hmm, I don't fully agree but better understand your point.
> 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.
I agree with that too (with added controls in the repository case that
no branches uses the repository).
Vincent
More information about the bazaar
mailing list