/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-09-23 20:25:33 UTC
  • mfrom: (2818.4.2 pack-support)
  • Revision ID: pqm@pqm.ubuntu.com-20070923202533-vzfy37j7bpkwo21z
(robertc) Various test fixes and tweaks for packs. (Robert Collins).

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        knit3_repo = b_bzrdir.create_repository()
65
65
        # fetch with a default limit (grab everything)
66
66
        knit3_repo.fetch(tree_a.branch.repository, revision_id=None)
 
67
        # Reopen to avoid any in-memory caching - ensure its reading from
 
68
        # disk.
 
69
        knit3_repo = b_bzrdir.open_repository()
67
70
        rev1_tree = knit3_repo.revision_tree('rev1')
68
71
        lines = rev1_tree.get_file_lines(rev1_tree.inventory.root.file_id)
69
72
        self.assertEqual([], lines)
82
85
        wt = self.make_branch_and_tree('a-repo-with-sigs')
83
86
        wt.commit('rev1', allow_pointless=True, rev_id='rev1')
84
87
        repo = wt.branch.repository
 
88
        repo.lock_write()
 
89
        repo.start_write_group()
85
90
        repo.sign_revision('rev1', gpg.LoopbackGPGStrategy(None))
 
91
        repo.commit_write_group()
 
92
        repo.unlock()
86
93
        return repo
87
94
 
88
95
    def test_fetch_copies_signatures(self):