~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

(jelmer) Deprecate Branch.revision_history(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
541
541
        self.assertEqual(('path3', 'location3'),
542
542
                         branch.get_reference_info('file-id'))
543
543
 
 
544
    def _recordParentMapCalls(self, repo):
 
545
        self._parent_map_calls = []
 
546
        orig_get_parent_map = repo.revisions.get_parent_map
 
547
        def get_parent_map(q):
 
548
            q = list(q)
 
549
            self._parent_map_calls.extend([e[0] for e in q])
 
550
            return orig_get_parent_map(q)
 
551
        repo.revisions.get_parent_map = get_parent_map
 
552
 
 
553
 
544
554
class TestBranchReference(tests.TestCaseWithTransport):
545
555
    """Tests for the branch reference facility."""
546
556