Merged revisions in log

Erik Bågfors zindar at gmail.com
Wed Oct 5 16:37:45 BST 2005


2005/10/3, Gustavo Niemeyer <gustavo at niemeyer.net>:
> > > The attached patch adds support for showing merged revisions
> > > in the log, and was built against the current newformat branch.
> >
> > I love the output. Unfortunately this fails tests when merged into my
> > newformat-5 branch. I'd love to merge this - could you have a look at
> > whats going on?
>
> Oops, sorry. That additional change will fix it:
>
> === modified file 'bzrlib/log.py'
> --- bzrlib/log.py
> +++ bzrlib/log.py
> @@ -173,6 +173,11 @@
>      # list indexes are 0-based; revisions are 1-based
>      cut_revs = which_revs[(start_revision-1):(end_revision)]
>
> +    if cut_revs:
> +        merged_revs = get_merged_revisions(cut_revs[-1][1], branch)
> +    else:
> +        merged_revs = {}
> +
>      if direction == 'reverse':
>          cut_revs.reverse()
>      elif direction == 'forward':

I have to say I just love this. In fact, this made me create my own
branch of bzr.newformat and put this in, I'll use it until it's
availiable in bzr.newformat.  This is exactly what I want in the log.

Great

/Erik




More information about the bazaar mailing list