/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/branch_implementations/test_branch.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:
248
248
        wt.commit("base", allow_pointless=True, rev_id='A')
249
249
        from bzrlib.testament import Testament
250
250
        strategy = gpg.LoopbackGPGStrategy(None)
 
251
        branch.repository.lock_write()
 
252
        branch.repository.start_write_group()
251
253
        branch.repository.sign_revision('A', strategy)
 
254
        branch.repository.commit_write_group()
 
255
        branch.repository.unlock()
252
256
        self.assertEqual('-----BEGIN PSEUDO-SIGNED CONTENT-----\n' +
253
257
                         Testament.from_revision(branch.repository,
254
258
                         'A').as_short_text() +
272
276
        wt = self.make_branch_and_tree('source')
273
277
        wt.commit('A', allow_pointless=True, rev_id='A')
274
278
        repo = wt.branch.repository
 
279
        repo.lock_write()
 
280
        repo.start_write_group()
275
281
        repo.sign_revision('A', gpg.LoopbackGPGStrategy(None))
 
282
        repo.commit_write_group()
 
283
        repo.unlock()
276
284
        #FIXME: clone should work to urls,
277
285
        # wt.clone should work to disks.
278
286
        self.build_tree(['target/'])