~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-04 11:57:18 UTC
  • Revision ID: mbp@sourcefrog.net-20050704115718-b532986c0714e7a7
- don't write precursor field in new revision xml
- make parents more primary; remove more precursor code
- test commit of revision with parents

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        self.assertEquals(b.pending_merges(),
65
65
                          ['foo@azkhazan-123123-abcabc',
66
66
                           'wibble@fofof--20050401--1928390812'])
 
67
 
 
68
        b.commit("commit from base with two merges")
 
69
 
 
70
        rev = b.get_revision(b.revision_history()[0])
 
71
        self.assertEquals(len(rev.parents), 2)
 
72
        self.assertEquals(rev.parents[0].revision_id,
 
73
                          'foo@azkhazan-123123-abcabc')
 
74
        self.assertEquals(rev.parents[1].revision_id,
 
75
                           'wibble@fofof--20050401--1928390812')
 
76
        
67
77
        
68
78
 
69
79
class Revert(InTempDir):