~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-02-22 06:19:39 UTC
  • mfrom: (1563.1.5 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060222061939-b4b7825d1d580ccf
Merge in ui for creating and converting to knit branch - no backend support yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
                         d2.open_repository().revision_store.get('A', 
268
268
                            'sig').read())
269
269
 
270
 
    def test_upgrade_preserves_signatures(self):
271
 
        wt = self.make_branch_and_tree('source')
272
 
        wt.commit('A', allow_pointless=True, rev_id='A')
273
 
        wt.branch.repository.sign_revision('A',
274
 
            bzrlib.gpg.LoopbackGPGStrategy(None))
275
 
        old_signature = wt.branch.repository.revision_store.get('A',
276
 
            'sig').read()
277
 
        try:
278
 
            upgrade(wt.basedir)
279
 
        except errors.UpToDateFormat:
280
 
            # this is in the most current format already.
281
 
            return
282
 
        wt = WorkingTree.open(wt.basedir)
283
 
        new_signature = wt.branch.repository.revision_store.get('A',
284
 
            'sig').read()
285
 
        self.assertEqual(old_signature, new_signature)
286
 
 
287
270
    def test_nicks(self):
288
271
        """Branch nicknames"""
289
272
        t = get_transport(self.get_url())