[MERGE] Accept NULL_REVISION everywhere

Aaron Bentley aaron.bentley at utoronto.ca
Wed Jul 11 23:27:46 BST 2007


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

Hi all,

This patch causes many, many functions to accept NULL_REVISION as their
input, in addition to None.  It is phase 1 of a project to remove all
use of None to represent the null revision.

Using None to indicate the null revision means that we can't use it to
mean "no value supplied".

Well, it means we shouldn't.  In fact, I have found several places where
None was being supplied to indicate the null revision, but was being
interpreted as "no value supplied".

In phase 2, I will change Branch.last_revision and other methods to
return NULL_REVISION where appropriate.  I plan to do phase 2 for Bazaar
0.20, since this does break the API.

Plugins that wish to anticipate this change can do so by wrapping
Branch.last_revision() with bzrlib.revision.ensure_null.

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

iD8DBQFGlVlh0F+nu1YWqI0RAipxAJ0TgDDvOqBmH5PIdImhKZyBheqhmQCcCIOT
wrBdITUIxL62NeHWIgtKYus=
=8bil
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nullrevision.patch
Type: text/x-patch
Size: 131603 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070711/e1bad864/attachment-0001.bin 


More information about the bazaar mailing list