Rev 1972: Fix another convert test. in file:///data/jelmer/bzr-svn/trunk/
Jelmer Vernooij
jelmer at samba.org
Mon Nov 10 04:49:34 GMT 2008
At file:///data/jelmer/bzr-svn/trunk/
------------------------------------------------------------
revno: 1972
revision-id: jelmer at samba.org-20081110044930-slqzvj7wkekn0lxg
parent: jelmer at samba.org-20081110042133-x1je11zr0p9dwr1a
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Mon 2008-11-10 05:49:30 +0100
message:
Fix another convert test.
modified:
convert.py svn2bzr.py-20051018015439-cb4563bff29e632d
tests/test_convert.py test_convert.py-20060705203611-b1l0bapeku6foco0-1
=== modified file 'convert.py'
--- a/convert.py 2008-10-10 13:34:02 +0000
+++ b/convert.py 2008-11-10 04:49:30 +0000
@@ -185,7 +185,6 @@
revmetas = []
existing_branches = {}
pb = ui.ui_factory.nested_progress_bar()
- # FIXME: Use filter_branch
try:
for revmeta in source_repos._revmeta_provider.iter_all_changes(layout, mapping,
to_revnum, from_revnum,
@@ -204,6 +203,8 @@
finally:
pb.finished()
existing_branches = existing_branches.values()
+ if filter_branch is not None:
+ existing_branches = filter(filter_branch, existing_branches)
if create_shared_repo:
inter = InterRepository.get(source_repos, target_repos)
=== modified file 'tests/test_convert.py'
--- a/tests/test_convert.py 2008-10-02 21:18:28 +0000
+++ b/tests/test_convert.py 2008-11-10 04:49:30 +0000
@@ -158,7 +158,6 @@
convert_repository(oldrepos, "e", TrunkLayout(0),
create_shared_repo=True,
filter_branch=lambda branch: branch.get_branch_path().endswith("somebranch"))
- newrepos = Repository.open("e")
self.assertTrue(os.path.exists("e/branches/somebranch"))
self.assertFalse(os.path.exists("e/branches/anotherbranch"))
More information about the bazaar-commits
mailing list