From 6c486b2e699082763075a169c56a4b01f99fc4b9 Mon Sep 17 00:00:00 2001 From: Paul Sowden Date: Sun, 23 Nov 2008 20:49:07 -0800 Subject: Make message the full message and add a summary property Adds a summary property to the Commit object which returns just the first line of the commit message and makes the message property contain the entire commit message (previously the message property only contained the first line of the commit message). This breaks backwards compatibility a little in that the message property now contains a different value but previously there was no way to access the entire commit message from the Commit object and this is in keeping with git vocabulary, where message generally refers to the entire commit message. (cherry picked from commit 9d2962d8306c894d4cca55bab551677b92d96352) --- test/git/test_repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/git/test_repo.py') diff --git a/test/git/test_repo.py b/test/git/test_repo.py index e5264a0d..8b767744 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -67,7 +67,7 @@ class TestRepo(object): c = commits[2] assert_equal(["6e64c55896aabb9a7d8e9f8f296f426d21a78c2c", "7f874954efb9ba35210445be456c74e037ba6af2"], map(lambda p: p.id, c.parents)) - assert_equal("Merge branch 'site'", c.message) + assert_equal("Merge branch 'site'", c.summary) assert_true(git.called) assert_equal(git.call_args, (('rev_list', 'master', '--', ''), {'skip': 0, 'pretty': 'raw', 'max_count': 10})) -- cgit v1.2.1