~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_annotate.py

  • Committer: Robert Collins
  • Date: 2006-02-15 08:11:37 UTC
  • mto: (1534.1.24 integration)
  • mto: This revision was merged to the branch mainline in revision 1554.
  • Revision ID: robertc@robertcollins.net-20060215081137-4c27377517e96dd1
Make format 4/5/6 branches share a single LockableFiles instance across wt/branch/repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
import os
32
32
 
33
33
from bzrlib.branch import Branch
34
 
from bzrlib.clone import copy_branch
35
34
from bzrlib.errors import BzrCommandError
36
35
from bzrlib.osutils import has_symlinks
37
 
from bzrlib.selftest import TestCaseInTempDir, BzrTestBase
 
36
from bzrlib.tests import TestCaseWithTransport
38
37
from bzrlib.annotate import annotate_file
39
38
 
40
39
 
41
 
class TestAnnotate(TestCaseInTempDir):
 
40
class TestAnnotate(TestCaseWithTransport):
 
41
 
42
42
    def setUp(self):
43
43
        super(TestAnnotate, self).setUp()
44
 
        b = Branch.initialize('.')
 
44
        wt = self.make_branch_and_tree('.')
 
45
        b = wt.branch
45
46
        self.build_tree_contents([('hello.txt', 'my helicopter\n'),
46
47
                                  ('nomail.txt', 'nomail\n')])
47
 
        b.add(['hello.txt'])
48
 
        b.working_tree().commit('add hello', 
 
48
        wt.add(['hello.txt'])
 
49
        wt.commit('add hello', 
49
50
                                committer='test@user')
50
 
        b.add(['nomail.txt'])
51
 
        b.working_tree().commit('add nomail', committer='no mail')
 
51
        wt.add(['nomail.txt'])
 
52
        wt.commit('add nomail', committer='no mail')
52
53
 
53
54
    def test_help_annotate(self):
54
55
        """Annotate command exists"""