Fossil SCM

In the artifact description generator, include the branch name and commit user in the description of check-in artifacts.

drh 2020-07-05 14:42 trunk
Commit 2ae6b1cc014cdbb8f3b0a62cd1b9f64b525ef749a8dce1722b92c49ce7d7ffe3
1 file changed +6 -2
+6 -2
--- src/name.c
+++ src/name.c
@@ -1057,15 +1057,19 @@
10571057
10581058
/* Describe check-ins */
10591059
db_multi_exec(
10601060
"INSERT OR IGNORE INTO description(rid,uuid,rcvid,ctime,type,summary)\n"
10611061
"SELECT blob.rid, blob.uuid, blob.rcvid, event.mtime, 'checkin',\n"
1062
- " 'check-in on ' || strftime('%%Y-%%m-%%d %%H:%%M',event.mtime)\n"
1062
+ " 'check-in to '\n"
1063
+ " || coalesce((SELECT value FROM tagxref WHERE tagid=%d"
1064
+ " AND tagtype>0 AND tagxref.rid=blob.rid),'trunk')\n"
1065
+ " || ' by ' || coalesce(event.euser,event.user)\n"
1066
+ " || ' on ' || strftime('%%Y-%%m-%%d %%H:%%M',event.mtime)\n"
10631067
" FROM event, blob\n"
10641068
" WHERE (event.objid %s) AND event.type='ci'\n"
10651069
" AND event.objid=blob.rid;",
1066
- zWhere /*safe-for-%s*/
1070
+ TAG_BRANCH, zWhere /*safe-for-%s*/
10671071
);
10681072
10691073
/* Describe files */
10701074
db_multi_exec(
10711075
"INSERT OR IGNORE INTO description(rid,uuid,rcvid,ctime,type,summary)\n"
10721076
--- src/name.c
+++ src/name.c
@@ -1057,15 +1057,19 @@
1057
1058 /* Describe check-ins */
1059 db_multi_exec(
1060 "INSERT OR IGNORE INTO description(rid,uuid,rcvid,ctime,type,summary)\n"
1061 "SELECT blob.rid, blob.uuid, blob.rcvid, event.mtime, 'checkin',\n"
1062 " 'check-in on ' || strftime('%%Y-%%m-%%d %%H:%%M',event.mtime)\n"
 
 
 
 
1063 " FROM event, blob\n"
1064 " WHERE (event.objid %s) AND event.type='ci'\n"
1065 " AND event.objid=blob.rid;",
1066 zWhere /*safe-for-%s*/
1067 );
1068
1069 /* Describe files */
1070 db_multi_exec(
1071 "INSERT OR IGNORE INTO description(rid,uuid,rcvid,ctime,type,summary)\n"
1072
--- src/name.c
+++ src/name.c
@@ -1057,15 +1057,19 @@
1057
1058 /* Describe check-ins */
1059 db_multi_exec(
1060 "INSERT OR IGNORE INTO description(rid,uuid,rcvid,ctime,type,summary)\n"
1061 "SELECT blob.rid, blob.uuid, blob.rcvid, event.mtime, 'checkin',\n"
1062 " 'check-in to '\n"
1063 " || coalesce((SELECT value FROM tagxref WHERE tagid=%d"
1064 " AND tagtype>0 AND tagxref.rid=blob.rid),'trunk')\n"
1065 " || ' by ' || coalesce(event.euser,event.user)\n"
1066 " || ' on ' || strftime('%%Y-%%m-%%d %%H:%%M',event.mtime)\n"
1067 " FROM event, blob\n"
1068 " WHERE (event.objid %s) AND event.type='ci'\n"
1069 " AND event.objid=blob.rid;",
1070 TAG_BRANCH, zWhere /*safe-for-%s*/
1071 );
1072
1073 /* Describe files */
1074 db_multi_exec(
1075 "INSERT OR IGNORE INTO description(rid,uuid,rcvid,ctime,type,summary)\n"
1076

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button