| | @@ -116,10 +116,11 @@ |
| 116 | 116 | #define TIMELINE_CHPICK 0x0400000 /* Show cherrypick merges */ |
| 117 | 117 | #define TIMELINE_FILLGAPS 0x0800000 /* Dotted lines for missing nodes */ |
| 118 | 118 | #define TIMELINE_XMERGE 0x1000000 /* Omit merges from off-graph nodes */ |
| 119 | 119 | #define TIMELINE_NOTKT 0x2000000 /* Omit extra ticket classes */ |
| 120 | 120 | #define TIMELINE_FORUMTXT 0x4000000 /* Render all forum messages */ |
| 121 | +#define TIMELINE_REFS 0x8000000 /* Output intended for References tab */ |
| 121 | 122 | #endif |
| 122 | 123 | |
| 123 | 124 | /* |
| 124 | 125 | ** Hash a string and use the hash to determine a background color. |
| 125 | 126 | */ |
| | @@ -560,12 +561,27 @@ |
| 560 | 561 | } |
| 561 | 562 | if( zType[0]!='c' ){ |
| 562 | 563 | /* Comments for anything other than a check-in are generated by |
| 563 | 564 | ** "fossil rebuild" and expect to be rendered as text/x-fossil-wiki */ |
| 564 | 565 | if( zType[0]=='w' ){ |
| 566 | + const char *zCom = blob_str(&comment); |
| 567 | + char *zWiki; |
| 565 | 568 | wiki_hyperlink_override(zUuid); |
| 566 | | - wiki_convert(&comment, 0, WIKI_INLINE); |
| 569 | + if( (tmFlags & TIMELINE_REFS)!=0 |
| 570 | + && (zWiki = strstr(zCom,"wiki"))!=0 |
| 571 | + ){ |
| 572 | + /* The TIMELINE_REFS flag causes timeline comments of the |
| 573 | + ** form "Changes to wiki..." or "Added wiki" to be changed |
| 574 | + ** into just "Wiki..." */ |
| 575 | + Blob rcom; |
| 576 | + blob_init(&rcom, 0, 0); |
| 577 | + blob_appendf(&rcom, "W%s", zWiki+1); |
| 578 | + wiki_convert(&rcom, 0, WIKI_INLINE); |
| 579 | + blob_reset(&rcom); |
| 580 | + }else{ |
| 581 | + wiki_convert(&comment, 0, WIKI_INLINE); |
| 582 | + } |
| 567 | 583 | wiki_hyperlink_override(0); |
| 568 | 584 | }else{ |
| 569 | 585 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 570 | 586 | } |
| 571 | 587 | }else{ |
| 572 | 588 | |