/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 breezy/tests/per_branch/test_commit.py

Merge lp:~jelmer/brz/supports-storing-branch-nick.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        branch.nick = "My happy branch"
37
37
        wt.commit('My commit respect da nick.')
38
38
        committed = branch.repository.get_revision(branch.last_revision())
39
 
        self.assertEqual(committed.properties["branch-nick"],
40
 
                         "My happy branch")
 
39
        if branch.repository._format.supports_storing_branch_nick:
 
40
            self.assertEqual(committed.properties["branch-nick"],
 
41
                             "My happy branch")
 
42
        else:
 
43
            self.assertNotIn("branch-nick", committed.properties)
41
44
 
42
45
 
43
46
class TestCommitHook(per_branch.TestCaseWithBranch):