~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/whitebox.py

  • Committer: Robert Collins
  • Date: 2005-11-07 20:17:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1504.
  • Revision ID: robertc@robertcollins.net-20051107201757-51b4922fe3ce4f3a
Branch.commit() has moved to WorkingTree.commit(). (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        self.build_tree(['hello.txt'])
26
26
 
27
27
        self.assertRaises(PointlessCommit,
28
 
                          b.commit,
 
28
                          b.working_tree().commit,
29
29
                          'commit without adding',
30
30
                          allow_pointless=False)
31
31
 
32
 
        b.commit('commit pointless tree',
 
32
        b.working_tree().commit('commit pointless tree',
33
33
                 allow_pointless=True)
34
34
 
35
35
        b.add('hello.txt')
36
36
        
37
 
        b.commit('commit first added file',
 
37
        b.working_tree().commit('commit first added file',
38
38
                 allow_pointless=False)
39
39
        
40
40
        self.assertRaises(PointlessCommit,
41
 
                          b.commit,
 
41
                          b.working_tree().commit,
42
42
                          'commit after adding file',
43
43
                          allow_pointless=False)
44
44
        
45
 
        b.commit('commit pointless revision with one file',
 
45
        b.working_tree().commit('commit pointless revision with one file',
46
46
                 allow_pointless=True)
47
47
 
48
48
 
54
54
        self.build_tree(['dir/', 'dir/sub/', 'dir/sub/file'])
55
55
        b.add(['dir', 'dir/sub', 'dir/sub/file'])
56
56
 
57
 
        b.commit('create initial state')
 
57
        b.working_tree().commit('create initial state')
58
58
 
59
59
        # TODO: lift out to a test helper that checks the shape of
60
60
        # an inventory