[MERGE] Handle empty list like non-empty list in iter_changes, revert
Aaron Bentley
aaron.bentley at utoronto.ca
Wed Aug 29 21:52:16 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
This patch updates Tree._iter_changes and revert to make their input
handling more regular. Previously, they had treated the empty list
differently from all other lists-- selecting all files, instead of
selecting no files. This behaviour is nice for processing commandline
input, but it doesn't make sense for an API. Now None is used by both
to select all, and [] is used to select no files.
This patch updates Tree._iter_changes without deprecation, because it's
a private method. It updates revert to accept None, but maintains
deprecated support for [].
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG1dyA0F+nu1YWqI0RAmLSAJ9IbBf+oCco1ppr/ppJ+YWOb4Y9EwCcD24p
jXp5pUwXyLFH9qB1VoiQ0sg=
=nwSn
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-mail-JC4S2a.patch
Type: text/x-patch
Size: 22880 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070829/53e8f9b3/attachment-0001.bin
More information about the bazaar
mailing list