~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(vila) Fixes '-d' handling for 'bzr config' (Wouter van Heyst)

Show diffs side-by-side

added added

removed removed

Lines of Context:
364
364
        self.assertLength(5, self.hpss_calls)
365
365
        self.assertLength(1, self.hpss_connections)
366
366
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
 
367
 
 
368
 
 
369
class TestConfigDirectory(tests.TestCaseWithTransport):
 
370
 
 
371
    def test_parent_alias(self):
 
372
        t = self.make_branch_and_tree('base')
 
373
        t.branch.get_config_stack().set('test', 'base')
 
374
        clone = t.branch.bzrdir.sprout('clone').open_branch()
 
375
        clone.get_config_stack().set('test', 'clone')
 
376
        out, err = self.run_bzr(['config', '-d', ':parent', 'test'],
 
377
                                working_dir='clone')
 
378
        self.assertEquals('base\n', out)