[MERGE] per_repository/test_repository improvements (brisbane)

John Arbash Meinel john at arbash-meinel.com
Mon Apr 6 03:32:55 BST 2009


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

Ian Clatworthy wrote:
> Testing tweaks from brisbane-core by Robert. I've reviewed
> them and they look fine to me. "bzr sefltest test_repository"
> passes with this patch so it can land into bzr.dev if approved.
> 
> Ian C.
> 



         tree = wt.branch.repository.revision_tree(NULL_REVISION)
- -        self.assertEqual([], list(tree.list_files(include_root=True)))
+        tree.lock_read()
+        try:
+            self.assertEqual([], list(tree.list_files(include_root=True)))
+        finally:
+            tree.unlock()

^- I do wish we had a better way of doing this that wasn't so verbose
all the time.

BB:approve

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

iEYEARECAAYFAknZadcACgkQJdeBCYSNAAMvCQCfWYZP18axXxfD+fmxBzNde6nQ
RYIAoNlu5MMcxXy7Xgrp9D3r4J+qtdGS
=K5yn
-----END PGP SIGNATURE-----



More information about the bazaar mailing list