[Bug] bzr diff -r 4.. == bzr diff -r 4..0

John A Meinel john at arbash-meinel.com
Thu Dec 1 22:16:15 GMT 2005


Aaron Bentley wrote:
> Michael Ellerman wrote:
>>> When I specify -r 4.. revision2 isn't None, it's RevisionSpec(None).
>>>
>>> What's the right way to test for this? It wasn't immediately obvious in the 
>>> RevisionSpec API how to check for it.
> 
> It would apear the RevisionSpec is parsing incorrectly, if
> RevisionSpec(None) means "the empty tree/null revision".  I think
> revision handling would get much simpler if we moved all our code to use
> RevisionSpec(revision.NULL_REVISION) for that, instead.

Well, with bzr log, RevisionSpec(None) sometimes means the First
revision, and sometimes means the Last revision (depending on its position).
So I'm happy to see it switch back to using a real None, and then having
people define RevisionSpec(revision.NULL_REVISION) when appropriate.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051201/bca42ae6/attachment.pgp 


More information about the bazaar mailing list