Commit Diff


commit - 1d3bc0bad526a7a4e21d9b2595e1f0f4edd98abe
commit + 7ee326cb704951ec81c37a236a98d8a62f755ad4
blob - 6497aeced96e61bad617a3e2e99859a97e484330
blob + e6b74faab16c4cb5b6fd21b2629f83b08210a2ed
--- gotd/parse.y
+++ gotd/parse.y
@@ -318,7 +318,8 @@ notifyflags_l	: notifyflags optnl notifyflags_l
 
 notifyflags	: BRANCH STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_branch(new_repo, $2)) {
 					free($2);
 					YYERROR;
@@ -328,7 +329,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| REFERENCE NAMESPACE STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_ref_namespace(new_repo, $3)) {
 					free($3);
 					YYERROR;
@@ -338,12 +340,15 @@ notifyflags	: BRANCH STRING {
 		}
 		| SUMMARIZE {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE)
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				conf_notify_summarize(new_repo);
+			}
 		}
 		| EMAIL TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, NULL, $3,
 				    0, 0, NULL)) {
 					free($3);
@@ -354,7 +359,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL TO STRING SHORTLOG {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, NULL, $3,
 				    1, 0, NULL)) {
 					free($3);
@@ -365,7 +371,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL TO STRING WITH DIFF {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, NULL, $3,
 				    0, 1, NULL)) {
 					free($3);
@@ -376,7 +383,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL TO STRING SHORTLOG WITH DIFF {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, NULL, $3,
 				    1, 1, NULL)) {
 					free($3);
@@ -387,7 +395,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL FROM STRING TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, $3, $5,
 				    0, 0, NULL)) {
 					free($3);
@@ -400,7 +409,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL FROM STRING TO STRING SHORTLOG {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, $3, $5,
 				    1, 0, NULL)) {
 					free($3);
@@ -413,7 +423,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL FROM STRING TO STRING WITH DIFF {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, $3, $5,
 				    0, 1, NULL)) {
 					free($3);
@@ -425,7 +436,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL FROM STRING TO STRING SHORTLOG WITH DIFF {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, $3, $5,
 				    1, 1, NULL)) {
 					free($3);
@@ -438,7 +450,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL TO STRING REPLY TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, NULL, $3,
 				    0, 0, $6)) {
 					free($3);
@@ -451,7 +464,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL TO STRING SHORTLOG REPLY TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, NULL, $3,
 				    1, 0, $7)) {
 					free($3);
@@ -464,7 +478,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL TO STRING WITH DIFF REPLY TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, NULL, $3,
 				    0, 1, $8)) {
 					free($3);
@@ -477,7 +492,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL TO STRING SHORTLOG WITH DIFF REPLY TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, NULL, $3,
 				    1, 1, $9)) {
 					free($3);
@@ -490,7 +506,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL FROM STRING TO STRING REPLY TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, $3, $5,
 				    0, 0, $8)) {
 					free($3);
@@ -505,7 +522,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL FROM STRING TO STRING SHORTLOG REPLY TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, $3, $5,
 				    1, 0, $9)) {
 					free($3);
@@ -520,7 +538,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL FROM STRING TO STRING WITH DIFF REPLY TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, $3, $5,
 				    0, 1, $10)) {
 					free($3);
@@ -535,7 +554,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| EMAIL FROM STRING TO STRING SHORTLOG WITH DIFF REPLY TO STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_email(new_repo, $3, $5,
 				    1, 1, $11)) {
 					free($3);
@@ -550,7 +570,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| URL STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_http(new_repo, $2, 0, NULL,
 				    NULL)) {
 					free($2);
@@ -561,7 +582,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| URL STRING SHORTLOG {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_http(new_repo, $2, 1, NULL,
 				    NULL)) {
 					free($2);
@@ -572,7 +594,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| URL STRING USER STRING PASSWORD STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_http(new_repo, $2, 1, $4, $6)) {
 					free($2);
 					free($4);
@@ -586,7 +609,8 @@ notifyflags	: BRANCH STRING {
 		}
 		| URL STRING SHORTLOG USER STRING PASSWORD STRING {
 			if (gotd_proc_id == PROC_GOTD ||
-			    gotd_proc_id == PROC_SESSION_WRITE) {
+			    gotd_proc_id == PROC_SESSION_WRITE ||
+			    gotd_proc_id == PROC_NOTIFY) {
 				if (conf_notify_http(new_repo, $2, 1, $5, $7)) {
 					free($2);
 					free($5);