/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: Robert Collins
  • Date: 2006-02-21 12:42:57 UTC
  • mto: (1563.1.5 integration)
  • mto: This revision was merged to the branch mainline in revision 1568.
  • Revision ID: robertc@robertcollins.net-20060221124257-8ee8f4b0b3b45ac3
Add a new format for what will become knit, and the surrounding logic to upgrade repositories within metadirs, and tests for the same.

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