~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2007-02-06 02:33:42 UTC
  • mto: This revision was merged to the branch mainline in revision 2274.
  • Revision ID: robertc@robertcollins.net-20070206023342-hv5o5qh6pdktiwbc
New branch hooks: post_push, post_pull, post_commit, post_uncommit. These
complement the set_rh hook by allowing different actions, and awareness of
the prior state of the branch, for operations where this matters.

Fix the inability to do a bzr pull --overwrite of a heavyweight checkout.

Add branch implementation tests for uncommit and commit.

(Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
327
327
        branch.nick = u"\u1234"
328
328
        self.assertEqual(branch.nick, u"\u1234")
329
329
 
330
 
    def test_commit_nicks(self):
331
 
        """Nicknames are committed to the revision"""
332
 
        get_transport(self.get_url()).mkdir('bzr.dev')
333
 
        wt = self.make_branch_and_tree('bzr.dev')
334
 
        branch = wt.branch
335
 
        branch.nick = "My happy branch"
336
 
        wt.commit('My commit respect da nick.')
337
 
        committed = branch.repository.get_revision(branch.last_revision())
338
 
        self.assertEqual(committed.properties["branch-nick"], 
339
 
                         "My happy branch")
340
 
 
341
330
    def test_create_open_branch_uses_repository(self):
342
331
        try:
343
332
            repo = self.make_repository('.', shared=True)