[MERGE] Deprecate tree.find_renames

Aaron Bentley aaron at aaronbentley.com
Sun Sep 21 01:43:12 BST 2008


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

Hi all,

Ever heard of the "renames" command?  Or tree.find_renames?  They were
introduced in the prehistoric days of revision 164, and haven't changed
much since then.  I just ran across find_renames today.

find_renames is a poor API nowadays, because it takes two inventories as
its input.  But more unfortunately, it considers a file renamed if its
parent directory is renamed.  So "bzr status" is a much better indicator
of which files have actually been renamed.

I've started by deprecating find_renames, because inventory-based APIs
are bad.  I've implemented cmd_renames in terms of iter_changes.

I'm also inclined to hide the "renames" command.  Any objections?

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

iD8DBQFI1Zig0F+nu1YWqI0RAr+PAJ4y+1X+PeC09YhlV8FLpnRxixxJgQCdGrEg
xNmmu0gt2FzyiRs1VgWzZtY=
=bVIV
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Aaron-s-mergeable-stuff-1943.patch
Type: text/x-diff
Size: 4137 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080920/d401bdbe/attachment.bin 


More information about the bazaar mailing list