[MERGE] Bugfix: WT4.get_file_sha1 raises exception on missing files #118186
Aaron Bentley
aaron.bentley at utoronto.ca
Fri Jun 1 15:01:09 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aaron Bentley wrote:
> Hi all,
>
> bzr.dev revno 22499 introduced a regression in
> WorkingTree4.get_file_sha1: it now raises an OSError when invoked on
> missing files. The expected behavior is to return None.
>
> This patch restores the correct behavior.
P.S. Thanks to Matthew for his very useful bug report. (It had a test
script, which made it easy to verify the fix.)
P.P.S, Now that we have infrastructure that permits us to add failing
test cases, should we encourage bug reporters to submit failing test cases?
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGYCal0F+nu1YWqI0RAizNAJ98nVapuhrMbk5YziuRqE0tihVHQgCeILD5
rmHstYeG2eDWUZqflQWuY0k=
=GvoF
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list