[MERGE] Change recommended replacement for Repository.revision_parents(), deprecate knitrepo implementation as well

John Arbash Meinel john at arbash-meinel.com
Fri May 2 21:25:31 BST 2008


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

Jelmer Vernooij wrote:
| The Repository.revision_parents() implementation currently calls the
| deprecated weave parents functions but is not deprecated itself. This
| deprecates Repository.revision_parents() itself as well.
|
| This fixes the issues raised by John in the previous thread.
|
| Cheers,
|
| Jelmer
|

+    * ``Repository.revision_parents`` is now deprecated in favour of
+      ``Repository.get_parent_map(revid)[revid]``. (Jelmer Vernooij)
+

get_parent_map is a multi function so it has to be ([revid])[revid]

Passing in a string like that will get you the parent map for the keys 'r' 'e'
'v' 'i' 'd'.

Otherwise:

BB:tweak

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

iEYEARECAAYFAkgbeLsACgkQJdeBCYSNAAMz5ACeMUX+pvFD5D/J+nP9XNxM1f2Z
WpQAn1PvdWKeuZPCay73YUyG2x7T6RZV
=GtwD
-----END PGP SIGNATURE-----



More information about the bazaar mailing list