~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-06 08:34:03 UTC
  • mfrom: (6191.2.1 843900-url-nameerror)
  • Revision ID: pqm@pqm.ubuntu.com-20111006083403-jnsw0exlirg01aed
(mbp) error message without traceback on invalid ubuntu/debian url (bug
 843900) (Martin Pool)

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