Commit a7648d7ad78682e85d33fb8daf304d2eb4ed1c7b

Stefan Sperling 2019-06-02T21:35:20

consistently use leading upper-case for messages indicating success

diff --git a/got/got.c b/got/got.c
index 5b82d9b..dc320bc 100644
--- a/got/got.c
+++ b/got/got.c
@@ -2625,7 +2625,7 @@ cmd_commit(int argc, char *argv[])
 	error = got_object_id_str(&id_str, id);
 	if (error)
 		goto done;
-	printf("created commit %s\n", id_str);
+	printf("Created commit %s\n", id_str);
 done:
 	if (repo)
 		got_repo_close(repo);
@@ -2733,7 +2733,7 @@ cmd_cherrypick(int argc, char *argv[])
 		goto done;
 
 	if (did_something)
-		printf("merged commit %s\n", commit_id_str);
+		printf("Merged commit %s\n", commit_id_str);
 done:
 	if (commit)
 		got_object_commit_close(commit);
@@ -2840,7 +2840,7 @@ cmd_backout(int argc, char *argv[])
 		goto done;
 
 	if (did_something)
-		printf("backed out commit %s\n", commit_id_str);
+		printf("Backed out commit %s\n", commit_id_str);
 done:
 	if (commit)
 		got_object_commit_close(commit);
diff --git a/regress/cmdline/backout.sh b/regress/cmdline/backout.sh
index d6140ca..32c9222 100755
--- a/regress/cmdline/backout.sh
+++ b/regress/cmdline/backout.sh
@@ -42,7 +42,7 @@ function test_backout_basic {
 	(cd $testroot/wt && got backout $bad_commit > $testroot/stdout)
 
 	echo "G  alpha" > $testroot/stdout.expected
-	echo "backed out commit $bad_commit" >> $testroot/stdout.expected
+	echo "Backed out commit $bad_commit" >> $testroot/stdout.expected
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
 	if [ "$ret" != "0" ]; then
diff --git a/regress/cmdline/cherrypick.sh b/regress/cmdline/cherrypick.sh
index 3562e91..c61d700 100755
--- a/regress/cmdline/cherrypick.sh
+++ b/regress/cmdline/cherrypick.sh
@@ -43,7 +43,7 @@ function test_cherrypick_basic {
 	echo "G  alpha" > $testroot/stdout.expected
 	echo "D  beta" >> $testroot/stdout.expected
 	echo "A  epsilon/new" >> $testroot/stdout.expected
-	echo "merged commit $branch_rev" >> $testroot/stdout.expected
+	echo "Merged commit $branch_rev" >> $testroot/stdout.expected
 
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
@@ -122,7 +122,7 @@ function test_cherrypick_root_commit {
 	(cd $testroot/wt && got cherrypick $root_commit > $testroot/stdout)
 
 	echo "A  epsilon/new" > $testroot/stdout.expected
-	echo "merged commit $root_commit" >> $testroot/stdout.expected
+	echo "Merged commit $root_commit" >> $testroot/stdout.expected
 
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
diff --git a/regress/cmdline/commit.sh b/regress/cmdline/commit.sh
index 9549704..abae3cb 100755
--- a/regress/cmdline/commit.sh
+++ b/regress/cmdline/commit.sh
@@ -37,7 +37,7 @@ function test_commit_basic {
 	echo "A  new" > $testroot/stdout.expected
 	echo "M  alpha" >> $testroot/stdout.expected
 	echo "D  beta" >> $testroot/stdout.expected
-	echo "created commit $head_rev" >> $testroot/stdout.expected
+	echo "Created commit $head_rev" >> $testroot/stdout.expected
 
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
@@ -69,7 +69,7 @@ function test_commit_new_subdir {
 	local head_rev=`git_show_head $testroot/repo`
 	echo "A  d/new" > $testroot/stdout.expected
 	echo "A  d/new2" >> $testroot/stdout.expected
-	echo "created commit $head_rev" >> $testroot/stdout.expected
+	echo "Created commit $head_rev" >> $testroot/stdout.expected
 
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
@@ -97,7 +97,7 @@ function test_commit_subdir {
 
 	local head_rev=`git_show_head $testroot/repo`
 	echo "M  epsilon/zeta" >> $testroot/stdout.expected
-	echo "created commit $head_rev" >> $testroot/stdout.expected
+	echo "Created commit $head_rev" >> $testroot/stdout.expected
 
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
@@ -125,7 +125,7 @@ function test_commit_single_file {
 
 	local head_rev=`git_show_head $testroot/repo`
 	echo "M  epsilon/zeta" >> $testroot/stdout.expected
-	echo "created commit $head_rev" >> $testroot/stdout.expected
+	echo "Created commit $head_rev" >> $testroot/stdout.expected
 
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
@@ -203,7 +203,7 @@ function test_commit_added_subdirs {
 	echo "A  d/f/new3" >> $testroot/stdout.expected
 	echo "A  d/new" >> $testroot/stdout.expected
 	echo "A  d/new2" >> $testroot/stdout.expected
-	echo "created commit $head_rev" >> $testroot/stdout.expected
+	echo "Created commit $head_rev" >> $testroot/stdout.expected
 
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
diff --git a/regress/cmdline/update.sh b/regress/cmdline/update.sh
index ab51867..a6dc4ac 100755
--- a/regress/cmdline/update.sh
+++ b/regress/cmdline/update.sh
@@ -1441,7 +1441,7 @@ function test_update_bumps_base_commit_id {
 
 	local head_rev=`git_show_head $testroot/repo`
 	echo "M  alpha" > $testroot/stdout.expected
-	echo "created commit $head_rev" >> $testroot/stdout.expected
+	echo "Created commit $head_rev" >> $testroot/stdout.expected
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
 	if [ "$ret" != "0" ]; then
@@ -1480,7 +1480,7 @@ function test_update_bumps_base_commit_id {
 
 	local head_rev=`git_show_head $testroot/repo`
 	echo "M  beta" > $testroot/stdout.expected
-	echo "created commit $head_rev" >> $testroot/stdout.expected
+	echo "Created commit $head_rev" >> $testroot/stdout.expected
 	cmp -s $testroot/stdout.expected $testroot/stdout
 	ret="$?"
 	if [ "$ret" != "0" ]; then