~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Vincent Ladeuil
  • Date: 2011-09-27 11:48:50 UTC
  • mto: This revision was merged to the branch mainline in revision 6173.
  • Revision ID: v.ladeuil+lp@free.fr-20110927114850-338r2mns0138klv0
Global options respect their hidden attribute

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
 
 
554
544
class TestBranchReference(tests.TestCaseWithTransport):
555
545
    """Tests for the branch reference facility."""
556
546