~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-12-09 15:51:26 UTC
  • mfrom: (3848.1.5 pull-log)
  • Revision ID: pqm@pqm.ubuntu.com-20081209155126-st6whj38jx3nl0ft
Pull -v respects log_format config var (abentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
340
340
        self.addCleanup(lambda: directories.remove('foo:'))
341
341
        self.run_bzr('pull foo:bar -d target')
342
342
        self.assertEqual(source_last, target.last_revision())
 
343
 
 
344
    def test_pull_verbose_defaults_to_long(self):
 
345
        tree = self.example_branch('source')
 
346
        target = self.make_branch_and_tree('target')
 
347
        out = self.run_bzr('pull -v source -d target')[0]
 
348
        self.assertContainsRe(out,
 
349
                              r'revno: 1\ncommitter: .*\nbranch nick: source')
 
350
        self.assertNotContainsRe(out, r'\n {4}1 .*\n {6}setup\n')
 
351
 
 
352
    def test_pull_verbose_uses_default_log(self):
 
353
        tree = self.example_branch('source')
 
354
        target = self.make_branch_and_tree('target')
 
355
        target_config = target.branch.get_config()
 
356
        target_config.set_user_option('log_format', 'short')
 
357
        out = self.run_bzr('pull -v source -d target')[0]
 
358
        self.assertContainsRe(out, r'\n {4}1 .*\n {6}setup\n')
 
359
        self.assertNotContainsRe(
 
360
            out, r'revno: 1\ncommitter: .*\nbranch nick: source')