~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Alexander Belchenko
  • Date: 2007-10-04 05:50:44 UTC
  • mfrom: (2881 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2884.
  • Revision ID: bialix@ukr.net-20071004055044-pb88kgkfayawro8n
merge bzr.dev

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):