[MERGE] Deprecated Repository.revision_parents.

John Arbash Meinel john at arbash-meinel.com
Fri May 2 20:26:05 BST 2008


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

James Westby wrote:
| On Fri, 2008-05-02 at 12:36 -0500, John Arbash Meinel wrote:
|> I personally would recommend switching to
|> Repository.get_parent_map([revision_id])[revision_id]
|
| Hi John,
|
| Wouldn't that KeyError in the presence of a ghost? Or are you referring
| to not returning ghosts, rather than handling ghosts as an argument?
|
| Thanks,
|
| James

The old function didn't handle ghosts very well either. I suppose it might have
raised NoSuchRevision instead of KeyError.

It is still better than get_revision(revision_id).parent_ids.

Then again, I don't know of anything that actually calls
"Repository.revision_parents". At least, there is nothing in bzrlib that calls it.

Maybe something in bzr-gtk?

John
=:->

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

iEYEARECAAYFAkgbas0ACgkQJdeBCYSNAAOmJgCfWkPzqY/48Fg6ZWsqQyGCB8wB
8qYAmgLt47dvNGyhLbGj3ZkbVFjltOgn
=yi4i
-----END PGP SIGNATURE-----



More information about the bazaar mailing list