~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_branch.py

  • Committer: Patch Queue Manager
  • Date: 2012-01-02 10:24:02 UTC
  • mfrom: (6404.1.2 branch-fetch-tags)
  • Revision ID: pqm@pqm.ubuntu.com-20120102102402-f8tlazxhdypu44ej
(vila) Migrate the 'branch.fetch_tags' option to config stacks. (Vincent
 Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
        builder = self.make_branch_builder('source')
332
332
        source = fixtures.build_branch_with_non_ancestral_rev(builder)
333
333
        source.tags.set_tag('tag-a', 'rev-2')
334
 
        source.get_config().set_user_option('branch.fetch_tags', 'True')
 
334
        source.get_config_stack().set('branch.fetch_tags', True)
335
335
        # Now source has a tag not in its ancestry.  Make a branch from it.
336
336
        self.run_bzr('branch source new-branch')
337
337
        new_branch = branch.Branch.open('new-branch')
531
531
        self.setup_smart_server_with_call_log()
532
532
        builder = self.make_branch_builder('source')
533
533
        source = fixtures.build_branch_with_non_ancestral_rev(builder)
534
 
        source.get_config().set_user_option('branch.fetch_tags', 'True')
 
534
        source.get_config_stack().set('branch.fetch_tags', True)
535
535
        source.tags.set_tag('tag-a', 'rev-2')
536
536
        source.tags.set_tag('tag-missing', 'missing-rev')
537
537
        # Now source has a tag not in its ancestry.  Make a branch from it.