~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_commit.py

  • Committer: Robert Collins
  • Date: 2005-10-03 01:15:02 UTC
  • mfrom: (1092.2.28)
  • Revision ID: robertc@robertcollins.net-20051003011502-f579a509a136b774
mergeĀ fromĀ baz2bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
        self.assertFalse(tree1.has_filename('fruity'))
146
146
        self.check_inventory_shape(tree1.inventory, ['hello'])
147
147
        ie = tree1.inventory['hello-id']
148
 
        eq(ie.name_version, 'test@rev-1')
 
148
        eq(ie.revision, 'test@rev-1')
149
149
 
150
150
        tree2 = b.revision_tree('test@rev-2')
151
151
        eq(tree2.id2path('hello-id'), 'fruity')
152
152
        eq(tree2.get_file_text('hello-id'), 'contents of hello\n')
153
153
        self.check_inventory_shape(tree2.inventory, ['fruity'])
154
154
        ie = tree2.inventory['hello-id']
155
 
        eq(ie.name_version, 'test@rev-2')
 
155
        eq(ie.revision, 'test@rev-2')
156
156
 
157
157
 
158
158
    def test_reused_rev_id(self):
198
198
                                   ['a', 'a/b/hello', 'a/b'])
199
199
 
200
200
        inv = b.get_revision_inventory(r4)
201
 
        eq(inv['hello-id'].name_version, r4)
202
 
        eq(inv['a-id'].name_version, r1)
203
 
        eq(inv['b-id'].name_version, r3)
 
201
        eq(inv['hello-id'].revision, r4)
 
202
        eq(inv['a-id'].revision, r1)
 
203
        eq(inv['b-id'].revision, r3)
204
204
 
205
205
        
206
206
    def test_removed_commit(self):