~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.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:
1434
1434
 
1435
1435
    def test_backwards_compatible(self):
1436
1436
        branch = self.make_branch_with_tags()
1437
 
        c = branch.get_config()
1438
 
        c.set_user_option('branch.fetch_tags', 'True')
 
1437
        c = branch.get_config_stack()
 
1438
        c.set('branch.fetch_tags', True)
1439
1439
        self.addCleanup(branch.lock_read().unlock)
1440
1440
        # Disable the heads_to_fetch verb
1441
1441
        verb = 'Branch.heads_to_fetch'
1450
1450
 
1451
1451
    def test_backwards_compatible_no_tags(self):
1452
1452
        branch = self.make_branch_with_tags()
1453
 
        c = branch.get_config()
1454
 
        c.set_user_option('branch.fetch_tags', 'False')
 
1453
        c = branch.get_config_stack()
 
1454
        c.set('branch.fetch_tags', False)
1455
1455
        self.addCleanup(branch.lock_read().unlock)
1456
1456
        # Disable the heads_to_fetch verb
1457
1457
        verb = 'Branch.heads_to_fetch'