~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/versioning.py

  • Committer: Lalo Martins
  • Date: 2005-09-08 11:08:13 UTC
  • mto: (1185.1.22)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: lalo@exoweb.net-20050908110811-49e867a4d2c07bf2
getting rid of branch.lookup_revision()

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
            
156
156
        run_bzr('commit', 'a', '-m', 'commit a only')
157
157
        
158
 
        old = b.revision_tree(b.lookup_revision(1))
159
 
        new = b.revision_tree(b.lookup_revision(2))
 
158
        old = b.revision_tree(b.get_rev_id(1))
 
159
        new = b.revision_tree(b.get_rev_id(2))
160
160
        
161
161
        eq(new.get_file_by_path('b/two').read(), 'old contents')
162
162
        eq(new.get_file_by_path('top').read(), 'old contents')
165
165
        os.chdir('a')
166
166
        # commit from here should do nothing
167
167
        run_bzr('commit', '.', '-m', 'commit subdir only', '--unchanged')
168
 
        v3 = b.revision_tree(b.lookup_revision(3))
 
168
        v3 = b.revision_tree(b.get_rev_id(3))
169
169
        eq(v3.get_file_by_path('b/two').read(), 'old contents')
170
170
        eq(v3.get_file_by_path('top').read(), 'old contents')
171
171
        eq(v3.get_file_by_path('a/one').read(), 'new contents')
172
172
                
173
173
        # commit in subdirectory commits whole tree
174
174
        run_bzr('commit', '-m', 'commit whole tree from subdir')
175
 
        v4 = b.revision_tree(b.lookup_revision(4))
 
175
        v4 = b.revision_tree(b.get_rev_id(4))
176
176
        eq(v4.get_file_by_path('b/two').read(), 'new contents')        
177
177
        eq(v4.get_file_by_path('top').read(), 'new contents')
178
178