465
465
self.assertEqual(branch.last_revision(), 'A')
466
466
self.assertFalse(branch.repository.has_revision('B'))
470
470
def test_commit_invokes_hooks(self):
472
472
wt = self.make_branch_and_tree('.')
475
475
def called(branch, rev_id):
480
480
commit.Commit(config_stack=conf).commit(
481
481
message = "base", allow_pointless=True, rev_id='A',
483
483
self.assertEqual(['called', 'called'], calls)
487
487
def test_commit_object_doesnt_set_nick(self):
488
488
# using the Commit object directly does not set the branch nick.