~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit.py

Merge from bzr.ab.integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
            self.assertEqual(['called', 'called'], calls)
367
367
        finally:
368
368
            del bzrlib.ahook
 
369
 
 
370
    def test_commit_object_doesnt_set_nick(self):
 
371
        # using the Commit object directly does not set the branch nick.
 
372
        wt = self.make_branch_and_tree('.')
 
373
        c = Commit()
 
374
        c.commit(working_tree=wt, message='empty tree', allow_pointless=True)
 
375
        self.assertEquals(wt.branch.revno(), 1)
 
376
        self.assertEqual({},
 
377
                         wt.branch.repository.get_revision(
 
378
                            wt.branch.last_revision()).properties)
 
379
 
 
380