[MERGE] Cannot view diff of first revision in the viz (#149061)

John Arbash Meinel john at arbash-meinel.com
Sat Nov 3 14:18:46 GMT 2007


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

Daniel Schierbeck wrote:
> This patch fixes bug #149061.
> 
> 
> Cheers,
> Daniel
> 

Just so you know, the recommended way is probably

from bzrlib import revision

if len(parent_ids) == 0:
  parent_id = revision.NULL_REVISION
else:
  parent_id = parent_ids[0]

None works for now, but I believe we are (slowly) deprecating it in favor of
NULL_REVISION.

The idea is that

def foo(rev_id=None):


If you use NULL_REVISION, then you can tell the difference between them not
supplying a value, and them supplying the "base ancestor of all trees"/"not a
revision".

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHLINFJdeBCYSNAAMRAh2SAKDOw0XHtYXZ5ttVdxU4CdN3sIXzdACg1yLI
GexzzOcumkmePe0vfNeIy/E=
=SROy
-----END PGP SIGNATURE-----



More information about the bzr-gtk mailing list