/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: Martin Pool
  • Date: 2007-02-15 01:23:29 UTC
  • mfrom: (2284 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2309.
  • Revision ID: mbp@sourcefrog.net-20070215012329-blt2xfhup97r6w8h
merge up from bzr.dev to get metadir changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        self.assertEquals(br.revision_history(), ["rev1",])
88
88
        br.append_revision("rev2", "rev3")
89
89
        self.assertEquals(br.revision_history(), ["rev1", "rev2", "rev3"])
 
90
        self.assertRaises(errors.ReservedId, br.append_revision, 'current:')
90
91
 
91
92
    def test_fetch_revisions(self):
92
93
        """Test fetch-revision operation."""
326
327
        branch.nick = u"\u1234"
327
328
        self.assertEqual(branch.nick, u"\u1234")
328
329
 
329
 
    def test_commit_nicks(self):
330
 
        """Nicknames are committed to the revision"""
331
 
        get_transport(self.get_url()).mkdir('bzr.dev')
332
 
        wt = self.make_branch_and_tree('bzr.dev')
333
 
        branch = wt.branch
334
 
        branch.nick = "My happy branch"
335
 
        wt.commit('My commit respect da nick.')
336
 
        committed = branch.repository.get_revision(branch.last_revision())
337
 
        self.assertEqual(committed.properties["branch-nick"], 
338
 
                         "My happy branch")
339
 
 
340
330
    def test_create_open_branch_uses_repository(self):
341
331
        try:
342
332
            repo = self.make_repository('.', shared=True)