[MERGE] Optimize single-file diff/revert/etc

Aaron Bentley aaron.bentley at utoronto.ca
Thu Jan 11 16:11:29 GMT 2007


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

Hi all,

This patch updates Tree._iter_changes so that it performs much faster
when specific files are specified.

It tweaks iter_entries_by_dir to avoid walking portions of the tree that
are not ancestors of specified files.  It does not return entries for
unspecified files.  This is more complicated than just returning the
specified entries, but it ensures that ordering requirements are met.

For the case where a single file is specified, there can be no ordering
requirements, so that entry is simply returned.

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

iD8DBQFFpmGx0F+nu1YWqI0RAi4kAJ9hnaE3bWbay7ggRlWrQYmu+JHAjgCeJ2J+
/DHzts0w8gJeLY6+7WLBVGw=
=w7Y8
-----END PGP SIGNATURE-----



More information about the bazaar mailing list