Fossil SCM
Add the (undocumented) "showrid" query parameter to the main timeline. Used for debugging only.
Commit
5111a5fea21e206ffc0fa933a0ade7ee5ac7ef3b
Parent
797780c3ff28b58…
1 file changed
+5
+5
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -87,10 +87,11 @@ | ||
| 87 | 87 | #define TIMELINE_FCHANGES 0x0020 /* Detail file changes */ |
| 88 | 88 | #define TIMELINE_BRCOLOR 0x0040 /* Background color by branch name */ |
| 89 | 89 | #define TIMELINE_UCOLOR 0x0080 /* Background color by user */ |
| 90 | 90 | #define TIMELINE_FRENAMES 0x0100 /* Detail only file name changes */ |
| 91 | 91 | #define TIMELINE_UNHIDE 0x0200 /* Unhide check-ins with "hidden" tag */ |
| 92 | +#define TIMELINE_SHOWRID 0x0400 /* Show RID values in addition to UUIDs */ | |
| 92 | 93 | #endif |
| 93 | 94 | |
| 94 | 95 | /* |
| 95 | 96 | ** Hash a string and use the hash to determine a background color. |
| 96 | 97 | */ |
| @@ -404,10 +405,13 @@ | ||
| 404 | 405 | } |
| 405 | 406 | }else if( zType[0]=='e' && tagid ){ |
| 406 | 407 | hyperlink_to_event_tagid(tagid<0?-tagid:tagid); |
| 407 | 408 | }else if( (tmFlags & TIMELINE_ARTID)!=0 ){ |
| 408 | 409 | hyperlink_to_uuid(zUuid); |
| 410 | + } | |
| 411 | + if( tmFlags & TIMELINE_SHOWRID ){ | |
| 412 | + @ (%d(rid)) | |
| 409 | 413 | } |
| 410 | 414 | db_column_blob(pQuery, commentColumn, &comment); |
| 411 | 415 | if( zType[0]!='c' ){ |
| 412 | 416 | /* Comments for anything other than a check-in are generated by |
| 413 | 417 | ** "fossil rebuild" and expect to be rendered as text/x-fossil-wiki */ |
| @@ -1552,10 +1556,11 @@ | ||
| 1552 | 1556 | } |
| 1553 | 1557 | } |
| 1554 | 1558 | if( P("showsql") ){ |
| 1555 | 1559 | @ <blockquote>%h(blob_sql_text(&sql))</blockquote> |
| 1556 | 1560 | } |
| 1561 | + if( P("showrid") ) tmFlags |= TIMELINE_SHOWRID; | |
| 1557 | 1562 | blob_zero(&sql); |
| 1558 | 1563 | db_prepare(&q, "SELECT * FROM timeline ORDER BY sortby DESC /*scan*/"); |
| 1559 | 1564 | @ <h2>%b(&desc)</h2> |
| 1560 | 1565 | blob_reset(&desc); |
| 1561 | 1566 | www_print_timeline(&q, tmFlags, zThisUser, zThisTag, 0); |
| 1562 | 1567 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -87,10 +87,11 @@ | |
| 87 | #define TIMELINE_FCHANGES 0x0020 /* Detail file changes */ |
| 88 | #define TIMELINE_BRCOLOR 0x0040 /* Background color by branch name */ |
| 89 | #define TIMELINE_UCOLOR 0x0080 /* Background color by user */ |
| 90 | #define TIMELINE_FRENAMES 0x0100 /* Detail only file name changes */ |
| 91 | #define TIMELINE_UNHIDE 0x0200 /* Unhide check-ins with "hidden" tag */ |
| 92 | #endif |
| 93 | |
| 94 | /* |
| 95 | ** Hash a string and use the hash to determine a background color. |
| 96 | */ |
| @@ -404,10 +405,13 @@ | |
| 404 | } |
| 405 | }else if( zType[0]=='e' && tagid ){ |
| 406 | hyperlink_to_event_tagid(tagid<0?-tagid:tagid); |
| 407 | }else if( (tmFlags & TIMELINE_ARTID)!=0 ){ |
| 408 | hyperlink_to_uuid(zUuid); |
| 409 | } |
| 410 | db_column_blob(pQuery, commentColumn, &comment); |
| 411 | if( zType[0]!='c' ){ |
| 412 | /* Comments for anything other than a check-in are generated by |
| 413 | ** "fossil rebuild" and expect to be rendered as text/x-fossil-wiki */ |
| @@ -1552,10 +1556,11 @@ | |
| 1552 | } |
| 1553 | } |
| 1554 | if( P("showsql") ){ |
| 1555 | @ <blockquote>%h(blob_sql_text(&sql))</blockquote> |
| 1556 | } |
| 1557 | blob_zero(&sql); |
| 1558 | db_prepare(&q, "SELECT * FROM timeline ORDER BY sortby DESC /*scan*/"); |
| 1559 | @ <h2>%b(&desc)</h2> |
| 1560 | blob_reset(&desc); |
| 1561 | www_print_timeline(&q, tmFlags, zThisUser, zThisTag, 0); |
| 1562 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -87,10 +87,11 @@ | |
| 87 | #define TIMELINE_FCHANGES 0x0020 /* Detail file changes */ |
| 88 | #define TIMELINE_BRCOLOR 0x0040 /* Background color by branch name */ |
| 89 | #define TIMELINE_UCOLOR 0x0080 /* Background color by user */ |
| 90 | #define TIMELINE_FRENAMES 0x0100 /* Detail only file name changes */ |
| 91 | #define TIMELINE_UNHIDE 0x0200 /* Unhide check-ins with "hidden" tag */ |
| 92 | #define TIMELINE_SHOWRID 0x0400 /* Show RID values in addition to UUIDs */ |
| 93 | #endif |
| 94 | |
| 95 | /* |
| 96 | ** Hash a string and use the hash to determine a background color. |
| 97 | */ |
| @@ -404,10 +405,13 @@ | |
| 405 | } |
| 406 | }else if( zType[0]=='e' && tagid ){ |
| 407 | hyperlink_to_event_tagid(tagid<0?-tagid:tagid); |
| 408 | }else if( (tmFlags & TIMELINE_ARTID)!=0 ){ |
| 409 | hyperlink_to_uuid(zUuid); |
| 410 | } |
| 411 | if( tmFlags & TIMELINE_SHOWRID ){ |
| 412 | @ (%d(rid)) |
| 413 | } |
| 414 | db_column_blob(pQuery, commentColumn, &comment); |
| 415 | if( zType[0]!='c' ){ |
| 416 | /* Comments for anything other than a check-in are generated by |
| 417 | ** "fossil rebuild" and expect to be rendered as text/x-fossil-wiki */ |
| @@ -1552,10 +1556,11 @@ | |
| 1556 | } |
| 1557 | } |
| 1558 | if( P("showsql") ){ |
| 1559 | @ <blockquote>%h(blob_sql_text(&sql))</blockquote> |
| 1560 | } |
| 1561 | if( P("showrid") ) tmFlags |= TIMELINE_SHOWRID; |
| 1562 | blob_zero(&sql); |
| 1563 | db_prepare(&q, "SELECT * FROM timeline ORDER BY sortby DESC /*scan*/"); |
| 1564 | @ <h2>%b(&desc)</h2> |
| 1565 | blob_reset(&desc); |
| 1566 | www_print_timeline(&q, tmFlags, zThisUser, zThisTag, 0); |
| 1567 |