-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Gary van der Merwe wrote: > Gary van der Merwe has proposed merging lp:~garyvdm/bzr/PublicStackedParentsProvider into lp:bzr.
The only thing I would mention is that we should add a single test that exercises the deprecated function. So that we
1) Know that the deprecation warning is emitted 2) Know that the api still works.
This would be something like: + + def test_stacked_parents_provider_overlapping(self): + # rev2 is availible in both providers. + # 1 + # | + # 2 + parents1 = _mod_graph.DictParentsProvider({'rev2': ['rev1']}) + parents2 = _mod_graph.DictParentsProvider({'rev2': ['rev1']}) + stacked = self.callDeprecated(deprecated_in(1, 16, 0), + _mod_graph._StackedParentsProvider( ... + self.assertEqual({'rev2': ['rev1']}, + stacked.get_parent_map(['rev2']))
Review: approve
Sorry I forgot to mention that before, but with that change, I think we should land it.
John =:-> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkofnqwACgkQJdeBCYSNAAN7ggCgllDFqwDus82fkVKnXUsXHzMI trAAn3aZTmfxX/LF0AoWOt8Ps6h6gKBu =HegE -----END PGP SIGNATURE-----
« Back to merge proposal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gary van der Merwe wrote:
> Gary van der Merwe has proposed merging lp:~garyvdm/bzr/PublicStackedParentsProvider into lp:bzr.
The only thing I would mention is that we should add a single test that
exercises the deprecated function. So that we
1) Know that the deprecation warning is emitted
2) Know that the api still works.
This would be something like: parents_ provider_ overlapping( self): DictParentsProv ider({' rev2': ['rev1']}) DictParentsProv ider({' rev2': ['rev1']}) ated(deprecated _in(1, 16, 0), _StackedParents Provider( l({'rev2' : ['rev1']}, get_parent_ map(['rev2' ]))
+
+ def test_stacked_
+ # rev2 is availible in both providers.
+ # 1
+ # |
+ # 2
+ parents1 = _mod_graph.
+ parents2 = _mod_graph.
+ stacked = self.callDeprec
+ _mod_graph.
...
+ self.assertEqua
+ stacked.
Review: approve
Sorry I forgot to mention that before, but with that change, I think we
should land it.
John enigmail. mozdev. org
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAko fnqwACgkQJdeBCY SNAAN7ggCgllDFq wDus82fkVKnXUsX HzMI LF0AoWOt8Ps6h6g KBu
trAAn3aZTmfxX/
=HegE
-----END PGP SIGNATURE-----