[MERGE] Define error for Repository.revision_tree()

John Arbash Meinel john at arbash-meinel.com
Sat Feb 17 03:07:54 GMT 2007


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

The attached patch adds some small tests that I found we were missing
for the Repository interface. Basically there was no definition of what
exception should be raised by Repository.revision_tree() if the
requested revision didn't exist.

Further, there were no tests of Repository.revision_trees(), so I added one.

In testing, we had a de facto error of RevisionNotPresent raised, since
that is what is raised by the underlying VersionedFile stores. I changed
it to NoSuchRevision, because it seemed like more of a Repository api.

If we don't prefer this, I can simply update the test to expect
RevisionNotPresent to be raised.

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

iD8DBQFF1nGJJdeBCYSNAAMRAvzuAJ4uZbPazXLnxP7DEqqkJCTDe/1G5gCdFEex
JGj47alBMfpVMbM2WUW2wcQ=
=AltB
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: revision_tree_errors.patch
Type: text/x-patch
Size: 4082 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070216/bde9a783/attachment.bin 


More information about the bazaar mailing list