[RFC] provide an API to easily create commands that iterate over a range of revisions
Aaron Bentley
aaron.bentley at utoronto.ca
Mon Jul 24 15:11:32 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthieu Moy wrote:
> Indeed, I think that "log" is just one instance of "iterate over a set
> of revisions", and I think something more general than show_log can be
> written, taking two revisions, a location, and a callback function.
> show_log would be only a wrapper around this, defining the right
> callback, and plugins could use this function too.
>
> Any opinion ?
I think this is wrong; attempting to do this to log would hobble
performance, because it would prevent us from retrieving all of our data
at once. Sometimes we need merges, sometimes we don't. Sometimes we
need RevisionTrees, sometimes we don't.
I would recommend that we adapt show_log to your needs, instead.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFExNUU0F+nu1YWqI0RAiezAJ98rXQ31WFP15lVBtoxkloY4F3kgwCfUhdZ
wglrAcNcRLN000PFgEX2K+s=
=fbtC
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list