Fossil SCM
Show the delta-source ID on files as well as check-ins for the "showid" query parameter on the /timeline page.
Commit
4f134e06ce210d4af904c6dffb2eaa3b036c0328d361e982fc9b2a2f920e88b0
Parent
f39c33c1332c6f7…
1 file changed
+7
-2
+7
-2
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -569,17 +569,22 @@ | ||
| 569 | 569 | const char *zOldName = db_column_text(&fchngQuery, 5); |
| 570 | 570 | const char *zOld = db_column_text(&fchngQuery, 4); |
| 571 | 571 | const char *zNew = db_column_text(&fchngQuery, 3); |
| 572 | 572 | const char *zUnpub = ""; |
| 573 | 573 | char *zA; |
| 574 | - char zId[20]; | |
| 574 | + char zId[40]; | |
| 575 | 575 | if( !inUl ){ |
| 576 | 576 | @ <ul class="filelist"> |
| 577 | 577 | inUl = 1; |
| 578 | 578 | } |
| 579 | 579 | if( tmFlags & TIMELINE_SHOWRID ){ |
| 580 | - sqlite3_snprintf(sizeof(zId), zId, " (%d) ", fid); | |
| 580 | + int srcId = delta_source_rid(fid); | |
| 581 | + if( srcId ){ | |
| 582 | + sqlite3_snprintf(sizeof(zId), zId, " (%d←%d) ", fid, srcId); | |
| 583 | + }else{ | |
| 584 | + sqlite3_snprintf(sizeof(zId), zId, " (%d) ", fid); | |
| 585 | + } | |
| 581 | 586 | }else{ |
| 582 | 587 | zId[0] = 0; |
| 583 | 588 | } |
| 584 | 589 | if( (tmFlags & TIMELINE_FRENAMES)!=0 ){ |
| 585 | 590 | if( !isNew && !isDel && zOldName!=0 ){ |
| 586 | 591 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -569,17 +569,22 @@ | |
| 569 | const char *zOldName = db_column_text(&fchngQuery, 5); |
| 570 | const char *zOld = db_column_text(&fchngQuery, 4); |
| 571 | const char *zNew = db_column_text(&fchngQuery, 3); |
| 572 | const char *zUnpub = ""; |
| 573 | char *zA; |
| 574 | char zId[20]; |
| 575 | if( !inUl ){ |
| 576 | @ <ul class="filelist"> |
| 577 | inUl = 1; |
| 578 | } |
| 579 | if( tmFlags & TIMELINE_SHOWRID ){ |
| 580 | sqlite3_snprintf(sizeof(zId), zId, " (%d) ", fid); |
| 581 | }else{ |
| 582 | zId[0] = 0; |
| 583 | } |
| 584 | if( (tmFlags & TIMELINE_FRENAMES)!=0 ){ |
| 585 | if( !isNew && !isDel && zOldName!=0 ){ |
| 586 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -569,17 +569,22 @@ | |
| 569 | const char *zOldName = db_column_text(&fchngQuery, 5); |
| 570 | const char *zOld = db_column_text(&fchngQuery, 4); |
| 571 | const char *zNew = db_column_text(&fchngQuery, 3); |
| 572 | const char *zUnpub = ""; |
| 573 | char *zA; |
| 574 | char zId[40]; |
| 575 | if( !inUl ){ |
| 576 | @ <ul class="filelist"> |
| 577 | inUl = 1; |
| 578 | } |
| 579 | if( tmFlags & TIMELINE_SHOWRID ){ |
| 580 | int srcId = delta_source_rid(fid); |
| 581 | if( srcId ){ |
| 582 | sqlite3_snprintf(sizeof(zId), zId, " (%d←%d) ", fid, srcId); |
| 583 | }else{ |
| 584 | sqlite3_snprintf(sizeof(zId), zId, " (%d) ", fid); |
| 585 | } |
| 586 | }else{ |
| 587 | zId[0] = 0; |
| 588 | } |
| 589 | if( (tmFlags & TIMELINE_FRENAMES)!=0 ){ |
| 590 | if( !isNew && !isDel && zOldName!=0 ){ |
| 591 |