[MERGE] [BUG #4663] Fix ``bzr log -r`` to support selecting merge revisions.

Kent Gibson warthog618 at gmail.com
Wed May 9 14:53:30 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The attached bundle fixes filtering of revisions based on revisionspec.
`bzr log -rA` and `bzr log -rA..B` now work for all supported
revisionspecs.
That includes other log options such as <file>.

This patch is branched off my LogFormatter rework patch, though as it
turned out the overlap is only incidental.

The patch tries to restructure _show_log so that it generates the full
set of revisions to be logged, then applies a stack of filters to
reduce that to the final set to be displayed.
The filter stack being:
    revisionspec
    fileid
    search (commit message)
    limit (limits the number displayed - will include that in a
separate patch)

revisionspec is first since the algorithm I used requires the full set
of revisions in the branch as a starting point.  limit is last since
it is to ensure only N revisions are displayed.

The restructuring is not as clean/complete as I'd wanted.  The search
filter requires the rev.message which is not available until the
formatting iteration, so the search and limit filters are still part
of the formatting iteration, not separate layers.

Cheers,
Kent.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGQdJZgoxTFTi1P8QRAtavAJwKKFQHPoHMWyFueJtix6VPGpPrpQCfR96K
oU08ONi7ZzsEhsXovy+7DF4=
=diiy
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: log_range.patch
Type: text/x-patch
Size: 20097 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070509/55c4fc53/attachment-0001.bin 


More information about the bazaar mailing list