Fossil SCM

Default the /timeline format to "comment (detail)".

drh 2017-11-26 01:41 trunk
Commit 58cfff2a4aa7ae490b08d590d64de1bb4a1a25f3423870f95220cb95396b34f0
3 files changed +1 -1 +1 -1 +1 -1
+1 -1
--- src/finfo.c
+++ src/finfo.c
@@ -330,11 +330,11 @@
330330
if( brBg ) url_add_parameter(&url, "brbg", 0);
331331
if( uBg ) url_add_parameter(&url, "ubg", 0);
332332
baseCheckin = name_to_rid_www("ci");
333333
zPrevDate[0] = 0;
334334
zFilename = PD("name","");
335
- eCommentFormat = db_get_int("timeline-comment-format", 0);
335
+ eCommentFormat = db_get_int("timeline-comment-format", 4);
336336
bShowDetail = (eCommentFormat & 1)==0; /* Bit 0 suppresses the comment */
337337
bSeparateDetail = (eCommentFormat & 8)!=0;
338338
switch( (eCommentFormat>>1)&3 ){
339339
case 1: bHashAfterComment = 1; break;
340340
case 2: bHashInDetail = 1; break;
341341
--- src/finfo.c
+++ src/finfo.c
@@ -330,11 +330,11 @@
330 if( brBg ) url_add_parameter(&url, "brbg", 0);
331 if( uBg ) url_add_parameter(&url, "ubg", 0);
332 baseCheckin = name_to_rid_www("ci");
333 zPrevDate[0] = 0;
334 zFilename = PD("name","");
335 eCommentFormat = db_get_int("timeline-comment-format", 0);
336 bShowDetail = (eCommentFormat & 1)==0; /* Bit 0 suppresses the comment */
337 bSeparateDetail = (eCommentFormat & 8)!=0;
338 switch( (eCommentFormat>>1)&3 ){
339 case 1: bHashAfterComment = 1; break;
340 case 2: bHashInDetail = 1; break;
341
--- src/finfo.c
+++ src/finfo.c
@@ -330,11 +330,11 @@
330 if( brBg ) url_add_parameter(&url, "brbg", 0);
331 if( uBg ) url_add_parameter(&url, "ubg", 0);
332 baseCheckin = name_to_rid_www("ci");
333 zPrevDate[0] = 0;
334 zFilename = PD("name","");
335 eCommentFormat = db_get_int("timeline-comment-format", 4);
336 bShowDetail = (eCommentFormat & 1)==0; /* Bit 0 suppresses the comment */
337 bSeparateDetail = (eCommentFormat & 8)!=0;
338 switch( (eCommentFormat>>1)&3 ){
339 case 1: bHashAfterComment = 1; break;
340 case 2: bHashInDetail = 1; break;
341
+1 -1
--- src/setup.c
+++ src/setup.c
@@ -1470,11 +1470,11 @@
14701470
login_insert_csrf_secret();
14711471
@ <p><input type="submit" name="submit" value="Apply Changes" /></p>
14721472
14731473
@ <hr />
14741474
multiple_choice_attribute("Comment Format", "timeline-comment-format",
1475
- "tcf", "0", count(azCommentFormats)/2, azCommentFormats);
1475
+ "tcf", "4", count(azCommentFormats)/2, azCommentFormats);
14761476
@ <p>Each timeline entry contains between one and three of the following subsections:
14771477
@ <blockquote><table border=0 cellpadding=0>
14781478
@ <tr><td>[hash]<td>&nbsp;&nbsp;<td>an artifact hash with a hyperlink to a detail page
14791479
@ <tr><td>comment<td><td>the check-in comment or other text describing the item
14801480
@ <tr><td>(details)<td><td>details about the entry, such as the user, branch, tags, etc.
14811481
--- src/setup.c
+++ src/setup.c
@@ -1470,11 +1470,11 @@
1470 login_insert_csrf_secret();
1471 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1472
1473 @ <hr />
1474 multiple_choice_attribute("Comment Format", "timeline-comment-format",
1475 "tcf", "0", count(azCommentFormats)/2, azCommentFormats);
1476 @ <p>Each timeline entry contains between one and three of the following subsections:
1477 @ <blockquote><table border=0 cellpadding=0>
1478 @ <tr><td>[hash]<td>&nbsp;&nbsp;<td>an artifact hash with a hyperlink to a detail page
1479 @ <tr><td>comment<td><td>the check-in comment or other text describing the item
1480 @ <tr><td>(details)<td><td>details about the entry, such as the user, branch, tags, etc.
1481
--- src/setup.c
+++ src/setup.c
@@ -1470,11 +1470,11 @@
1470 login_insert_csrf_secret();
1471 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1472
1473 @ <hr />
1474 multiple_choice_attribute("Comment Format", "timeline-comment-format",
1475 "tcf", "4", count(azCommentFormats)/2, azCommentFormats);
1476 @ <p>Each timeline entry contains between one and three of the following subsections:
1477 @ <blockquote><table border=0 cellpadding=0>
1478 @ <tr><td>[hash]<td>&nbsp;&nbsp;<td>an artifact hash with a hyperlink to a detail page
1479 @ <tr><td>comment<td><td>the check-in comment or other text describing the item
1480 @ <tr><td>(details)<td><td>details about the entry, such as the user, branch, tags, etc.
1481
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -268,11 +268,11 @@
268268
bCommentGitStyle = db_get_int("timeline-truncate-at-blank", 0);
269269
{
270270
/* Undocumented query parameter commentformat=N takes a numeric parameter to
271271
** adjust the comment-format for testing purposes. */
272272
const char *z = P("commentformat");
273
- eCommentFormat = z ? atoi(z) : db_get_int("timeline-comment-format", 0);
273
+ eCommentFormat = z ? atoi(z) : db_get_int("timeline-comment-format", 4);
274274
}
275275
bShowDetail = (eCommentFormat & 1)==0; /* Bit 0 suppresses the comment */
276276
bSeparateDetail = (eCommentFormat & 8)!=0; /* Bit 3 turns on the detail column */
277277
switch( (eCommentFormat>>1)&3 ){
278278
case 1: bHashAfterComment = 1; break;
279279
--- src/timeline.c
+++ src/timeline.c
@@ -268,11 +268,11 @@
268 bCommentGitStyle = db_get_int("timeline-truncate-at-blank", 0);
269 {
270 /* Undocumented query parameter commentformat=N takes a numeric parameter to
271 ** adjust the comment-format for testing purposes. */
272 const char *z = P("commentformat");
273 eCommentFormat = z ? atoi(z) : db_get_int("timeline-comment-format", 0);
274 }
275 bShowDetail = (eCommentFormat & 1)==0; /* Bit 0 suppresses the comment */
276 bSeparateDetail = (eCommentFormat & 8)!=0; /* Bit 3 turns on the detail column */
277 switch( (eCommentFormat>>1)&3 ){
278 case 1: bHashAfterComment = 1; break;
279
--- src/timeline.c
+++ src/timeline.c
@@ -268,11 +268,11 @@
268 bCommentGitStyle = db_get_int("timeline-truncate-at-blank", 0);
269 {
270 /* Undocumented query parameter commentformat=N takes a numeric parameter to
271 ** adjust the comment-format for testing purposes. */
272 const char *z = P("commentformat");
273 eCommentFormat = z ? atoi(z) : db_get_int("timeline-comment-format", 4);
274 }
275 bShowDetail = (eCommentFormat & 1)==0; /* Bit 0 suppresses the comment */
276 bSeparateDetail = (eCommentFormat & 8)!=0; /* Bit 3 turns on the detail column */
277 switch( (eCommentFormat>>1)&3 ){
278 case 1: bHashAfterComment = 1; break;
279

Keyboard Shortcuts

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