~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/whitebox.py

  • Committer: Martin Pool
  • Date: 2005-07-11 03:29:50 UTC
  • Revision ID: mbp@sourcefrog.net-20050711032950-63c1de89650073b6
- more tests for detecting empty commits

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
                          'commit without adding',
34
34
                          allow_empty=False)
35
35
 
36
 
 
 
36
        b.commit('commit empty tree',
 
37
                 allow_empty=True)
 
38
 
 
39
        b.add('hello.txt')
 
40
        
 
41
        b.commit('commit first added file',
 
42
                 allow_empty=False)
 
43
        
 
44
        self.assertRaises(EmptyCommit,
 
45
                          b.commit,
 
46
                          'commit after adding file',
 
47
                          allow_empty=False)
 
48
        
 
49
        b.commit('commit pointless revision with one file',
 
50
                 allow_empty=True)
 
51
 
 
52
        b.add_pending_merge('mbp@892739123-2005-123123')
 
53
        b.commit('commit new merge with no text changes',
 
54
                 allow_empty=False)
 
55
        
37
56
 
38
57
 
39
58
class ValidateRevisionId(TestBase):