diff options
| author | Joe Gordon <jogo@cloudscaling.com> | 2011-12-06 15:48:08 -0800 |
|---|---|---|
| committer | Joe Gordon <jogo@cloudscaling.com> | 2011-12-06 15:48:08 -0800 |
| commit | d39d06e2761be3a82a3539e03f492b3ddcd2d60c (patch) | |
| tree | 5f2f502692a1c0e840e46744206bef2c3da69e7c | |
| parent | b71afdb54a49eb15d0317899e12cf5ef5ee16127 (diff) | |
| download | nova-d39d06e2761be3a82a3539e03f492b3ddcd2d60c.tar.gz nova-d39d06e2761be3a82a3539e03f492b3ddcd2d60c.tar.xz nova-d39d06e2761be3a82a3539e03f492b3ddcd2d60c.zip | |
Remove bzr related code in tests/test_misc
Change-Id: If15b337d2150706162958e8fdf89e3bdae16a699
| -rw-r--r-- | nova/tests/test_misc.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/nova/tests/test_misc.py b/nova/tests/test_misc.py index e510e87ad..6bee4022f 100644 --- a/nova/tests/test_misc.py +++ b/nova/tests/test_misc.py @@ -49,26 +49,7 @@ class ProjectTestCase(test.TestCase): mailmap = parse_mailmap(os.path.join(topdir, '.mailmap')) authors_file = open(os.path.join(topdir, 'Authors'), 'r').read() - if os.path.exists(os.path.join(topdir, '.bzr')): - import bzrlib.workingtree - tree = bzrlib.workingtree.WorkingTree.open(topdir) - tree.lock_read() - try: - parents = tree.get_parent_ids() - g = tree.branch.repository.get_graph() - for p in parents: - rev_ids = [r for r, _ in g.iter_ancestry(parents) - if r != "null:"] - revs = tree.branch.repository.get_revisions(rev_ids) - for r in revs: - for author in r.get_apparent_authors(): - email = author.split(' ')[-1] - contributors.add(str_dict_replace(email, - mailmap)) - finally: - tree.unlock() - - elif os.path.exists(os.path.join(topdir, '.git')): + if os.path.exists(os.path.join(topdir, '.git')): for email in commands.getoutput('git log --format=%ae').split(): if not email: continue |
