[MERGE] deprecate VersionedFile.get_sha1
John Arbash Meinel
john at arbash-meinel.com
Wed Apr 9 08:42:09 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Collins wrote:
| We have a plural version, so the single can go. Bye Bye method.
|
| -Rob
|
- -
+ # Deprecasted single-version API.
+ self.assertEqual(
+ '3f786850e387550fdab836ed7e6dc881de23001b',
+ self.applyDeprecated(one_four, vf.get_sha1, 'a'))
+ self.assertEqual(
+ '3f786850e387550fdab836ed7e6dc881de23001b',
+ self.applyDeprecated(one_four, vf.get_sha1, 'b'))
+ self.assertEqual(
+ '86f7e437faa5a7fce15d1ddcb9eaeaea377667b8',
+ self.applyDeprecated(one_four, vf.get_sha1, 'c'))
~ self.assertEqual(['3f786850e387550fdab836ed7e6dc881de23001b',
~ '86f7e437faa5a7fce15d1ddcb9eaeaea377667b8',
~ '3f786850e387550fdab836ed7e6dc881de23001b'],
^- This seems like it should be a separate test, but otherwise seems fine. If
you feel it is too much for a deprecated api, that is fine, too.
BB:tweak
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH/HNRJdeBCYSNAAMRAg+fAJ9FoPja8ojb3Z25+EJO2wqIhaa8wwCfaeGD
ipduB6YNg64Xx5dDEI8Mx9I=
=0R2s
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list