~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-14 23:42:30 UTC
  • mfrom: (5815.5.12 per-file-graph)
  • Revision ID: pqm@pqm.ubuntu.com-20110514234230-f8yy3myzrtp5sxt2
(jelmer) Add Repository.get_file_graph(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
        repo.lock_write()
138
138
        self.addCleanup(repo.unlock)
139
139
        repo.fetch(source.repository)
 
140
        graph = repo.get_file_graph()
140
141
        self.assertEqual(result,
141
 
            repo.texts.get_parent_map([(root_id, 'tip')])[(root_id, 'tip')])
 
142
            graph.get_parent_map([(root_id, 'tip')])[(root_id, 'tip')])
142
143
 
143
144
    def test_fetch_to_rich_root_set_parent_no_parents(self):
144
145
        # No parents rev -> No parents