def test_commit_template(self): """Test building a commit message template""" working_tree = self.make_uncommitted_tree() template = msgeditor.make_commit_message_template(working_tree, None) self.assertEqualDiff(template, u"""\ added: hell\u00d8 """)
def test_commit_template_pending_merges(self): """Test building a commit message template when there are pending merges. The commit message should show all pending merge revisions, as does 'status -v', not only the merge tips. """ working_tree = self.make_multiple_pending_tree() template = msgeditor.make_commit_message_template(working_tree, None) self.assertEqualDiff( template, u"""\ pending merges: Bilbo Baggins 2009-01-29 Feature X finished. Bilbo Baggins 2009-01-28 Feature X work. Bilbo Baggins 2009-01-30 Feature Y, based on initial X work. """)
def test_commit_template_pending_merges(self): """Test building a commit message template when there are pending merges. The commit message should show all pending merge revisions, as does 'status -v', not only the merge tips. """ working_tree = self.make_multiple_pending_tree() template = msgeditor.make_commit_message_template(working_tree, None) self.assertEqualDiff( template, u"""\ pending merges: Bilbo Baggins 2009-01-29 Feature X finished. Bilbo Baggins 2009-01-28 Feature X work. Bilbo Baggins 2009-01-30 Feature Y, based on initial X work. """, )