From b171b4bf6091c1b3482b7ac3c14e1672f10c6950 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 27 Jun 2008 11:19:39 -0300 Subject: Improves commit message scripts From: Mauro Carvalho Chehab This patch improves message description sanity rules: - mailimport now prefers to edit using editdiff. This helps to fix trivial CodingStyle errors at receive patches; - hghead.pl will now remove blank whitespaces if no body exists; - "make commit" will now run hghead.pl. This will do some sanity checks at commit messages: *) Will warrant that "from:" metatag exists, avoiding to have patches without proper authorship id at someone's else tree; *) Will order the tags at the expected way (subject, from, body, signatures); *) Will warrant that one and just one blank line exists between each of the four parts of the commit message. Signed-off-by: Mauro Carvalho Chehab --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 731ec2d92..f5bc79999 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ commit cvscommit hgcommit change changes changelog:: whitespace echo "$$CHECKSUM" | md5sum -c --status && \ echo "*** commit message not changed. Aborting. ***" \ && exit 13 || exit 0 - grep -v '^#' $(TMP)/v4l_hg_commit.msg | hg commit -l - + $(BUILD_DIR)/scripts/hghead.pl $(TMP)/v4l_hg_commit.msg | grep -v '^#' | hg commit -l - @echo "*** PLEASE CHECK IF LOG IS OK:" @hg log -v -r -1 @echo "*** If not ok, do \"hg rollback\" and \"make commit\" again" -- cgit v1.2.3