[MERGE] Deprecate Branch.missing_revisions()

John Arbash Meinel john at arbash-meinel.com
Wed May 21 16:51:12 BST 2008


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

It seems we have an old, crufty api out there that I'd like to remove.

The code itself is pretty bad (scales O(mainline)). I could fix that, but the
'stop_revision' parameter was probably expected to be a revision_id, but is
actually required to be a revno. The parameters aren't properly documented, and
the function is only used in 'test_switch'.

So I added some tests to make sure the current api is preserved, and deprecated
the function since it is crufty.

This came up on IRC as a question of how to do 'missing', so I figured I'd do a
quick cleanup.

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

iEUEARECAAYFAkg0RPAACgkQJdeBCYSNAAP5rgCYn1FG82TKuUksx91R7O+T++c2
ogCdGP3P80KixLXfcGVuh6GjaGM8fJ8=
=1yCq
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: missing_revisions.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20080521/b83e19be/attachment-0001.diff 


More information about the bazaar mailing list