New plugin: merged-branches

Jonathan Lange jml at mumak.net
Tue Mar 18 03:51:57 GMT 2008


On Tue, Mar 18, 2008 at 2:43 PM, Robert Collins
<robertc at robertcollins.net> wrote:
>
> On Tue, 2008-03-18 at 14:40 +1100, Jonathan Lange wrote:
>  > Hello all,
>  >
>  > I just wrote a plugin that shows a list of local branches that are
>  > safe to delete. It goes through the siblings of your trunk branch and
>  > lists all those that have been merged and have no interesting local
>  > changes.
>  >
>  > Full details here: http://mumak.net/2008/03/18/ok-i-lied/
>  > Code here: https://code.launchpad.net/~jml/+junk/merged-branches
>  >
>  > Right now, it's good enough to solve my main problem, which is
>  > gardening my branches directory. However, the code is very much a WIP,
>  > and I would love to hear your feedback.
>
>  doesn't heads do this already?
>

I don't think so. It's hard to tell because it has no documentation
and almost all of the code is in run(). Perhaps if a 'dead head'
another way of saying a 'merged branch' then there is some overlap.

Even so, I'm pretty sure that heads doesn't look for local changes.

anyway-what's-a-head'ly yours,
jml



More information about the bazaar mailing list