/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tests/test_branch.py

Only actually fetch tags if "branch.fetch_tags" is set to true.

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
        revid1 = oldrepo.get_mapping().revision_id_foreign_to_bzr(gitsha1)
247
247
        revid2 = oldrepo.get_mapping().revision_id_foreign_to_bzr(gitsha2)
248
248
        newbranch = self.make_branch('g')
249
 
        inter_branch = InterBranch.get(Branch.open(path), newbranch)
 
249
        source_branch = Branch.open(path)
 
250
        source_branch.get_config().set_user_option("branch.fetch_tags", True)
 
251
        inter_branch = InterBranch.get(source_branch, newbranch)
250
252
        inter_branch.pull(stop_revision=revid1)
251
253
        self.assertEquals(revid1, newbranch.last_revision())
252
254
        self.assertTrue(newbranch.repository.has_revision(revid2))