Fossil SCM

Add the (undocumented) "showrid" query parameter to the main timeline. Used for debugging only.

drh 2014-12-23 12:09 trunk
Commit 5111a5fea21e206ffc0fa933a0ade7ee5ac7ef3b
1 file changed +5
--- src/timeline.c
+++ src/timeline.c
@@ -87,10 +87,11 @@
8787
#define TIMELINE_FCHANGES 0x0020 /* Detail file changes */
8888
#define TIMELINE_BRCOLOR 0x0040 /* Background color by branch name */
8989
#define TIMELINE_UCOLOR 0x0080 /* Background color by user */
9090
#define TIMELINE_FRENAMES 0x0100 /* Detail only file name changes */
9191
#define TIMELINE_UNHIDE 0x0200 /* Unhide check-ins with "hidden" tag */
92
+#define TIMELINE_SHOWRID 0x0400 /* Show RID values in addition to UUIDs */
9293
#endif
9394
9495
/*
9596
** Hash a string and use the hash to determine a background color.
9697
*/
@@ -404,10 +405,13 @@
404405
}
405406
}else if( zType[0]=='e' && tagid ){
406407
hyperlink_to_event_tagid(tagid<0?-tagid:tagid);
407408
}else if( (tmFlags & TIMELINE_ARTID)!=0 ){
408409
hyperlink_to_uuid(zUuid);
410
+ }
411
+ if( tmFlags & TIMELINE_SHOWRID ){
412
+ @ (%d(rid))
409413
}
410414
db_column_blob(pQuery, commentColumn, &comment);
411415
if( zType[0]!='c' ){
412416
/* Comments for anything other than a check-in are generated by
413417
** "fossil rebuild" and expect to be rendered as text/x-fossil-wiki */
@@ -1552,10 +1556,11 @@
15521556
}
15531557
}
15541558
if( P("showsql") ){
15551559
@ <blockquote>%h(blob_sql_text(&sql))</blockquote>
15561560
}
1561
+ if( P("showrid") ) tmFlags |= TIMELINE_SHOWRID;
15571562
blob_zero(&sql);
15581563
db_prepare(&q, "SELECT * FROM timeline ORDER BY sortby DESC /*scan*/");
15591564
@ <h2>%b(&desc)</h2>
15601565
blob_reset(&desc);
15611566
www_print_timeline(&q, tmFlags, zThisUser, zThisTag, 0);
15621567
--- 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

Keyboard Shortcuts

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