~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_fileid_involved.py

  • Committer: Jelmer Vernooij
  • Date: 2011-09-27 11:34:38 UTC
  • mto: This revision was merged to the branch mainline in revision 6216.
  • Revision ID: jelmer@samba.org-20110927113438-iaunzmkn9yscv0al
More test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
        self.branch.lock_read()
207
207
        self.addCleanup(self.branch.unlock)
208
208
        pp=[]
209
 
        history = list(self.branch.iter_revision_history())
 
209
        history = list(self.branch.iter_reverse_revision_history())
 
210
        history.reverse()
210
211
 
211
212
        if len(history) < 2: return
212
213
 
297
298
        # sees each change rather than the aggregate delta.
298
299
        self.branch.lock_read()
299
300
        self.addCleanup(self.branch.unlock)
300
 
        history = list(self.branch.iter_revision_history())
301
 
        old_rev = history[0]
302
 
        new_rev = history[1]
 
301
        history = list(self.branch.iter_reverse_revision_history())
 
302
        new_rev = history[0]
 
303
        old_rev = history[1]
303
304
        graph = self.branch.repository.get_graph()
304
305
        unique_revs = graph.find_unique_ancestors(new_rev, [old_rev])
305
306