[MERGE] trees - add get_parent_ids

John Arbash Meinel john at arbash-meinel.com
Fri Jun 16 15:55:18 BST 2006


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

Aaron Bentley wrote:
> Robert Collins wrote:
>>> On Fri, 2006-06-16 at 10:01 -0400, Aaron Bentley wrote:
>>> How about I change the api to be:
>>> [] for a tree known to have no parents including EmptyTree.
>>> [revid, ...] for trees descending from non-null parents.
> 
> Sounds good.
> 
>>> raises BzrError *for now* if we do not know the parents. (When we have a
>>> use for it, we can and should create a specific exception. I'm just not
>>> sure what it should be called, and as we have no code that can generate
>>> this situation I'm hesitant about putting in an exception that may never
>>> ever be used/possible to use.
> 
> Sounds fine.
> 
> Aaron

Either 'BzrError' or a plain 'assert'. Since it is an unreachable state.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEksZWJdeBCYSNAAMRAmLiAKC/Yplzor/7n3l6jjwkIMRyJRLfNACfQsmH
eduk2avuXc43qbT3Hthpb1M=
=bJW9
-----END PGP SIGNATURE-----




More information about the bazaar mailing list