Fossil SCM
Improved debugging output for forum displays: Show the RID on "(artifact)" links.
Commit
14795faaee2db161646a709347bc4cbcc849613bf0aedf2f7f5d1772f8f934bd
Parent
22f879dde64ce7b…
1 file changed
+4
-3
+4
-3
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -432,11 +432,11 @@ | ||
| 432 | 432 | @ edit of %z(href("%R/forumpost/%S?t=%c",p->pEdit->zUuid,cMode))\ |
| 433 | 433 | @ %d(p->pEdit->sid)</a> |
| 434 | 434 | } |
| 435 | 435 | if( g.perm.Debug ){ |
| 436 | 436 | @ <span class="debug">\ |
| 437 | - @ <a href="%R/artifact/%h(p->zUuid)">(artifact)</a></span> | |
| 437 | + @ <a href="%R/artifact/%h(p->zUuid)">(artifact-%d(p->fpid))</a></span> | |
| 438 | 438 | } |
| 439 | 439 | if( p->firt ){ |
| 440 | 440 | ForumEntry *pIrt = p->pPrev; |
| 441 | 441 | while( pIrt && pIrt->fpid!=p->firt ) pIrt = pIrt->pPrev; |
| 442 | 442 | if( pIrt ){ |
| @@ -554,11 +554,11 @@ | ||
| 554 | 554 | @ (%d(p->pLeaf?p->pLeaf->sid:p->sid)) By %h(zDisplayName) on %h(zDate) |
| 555 | 555 | fossil_free(zDisplayName); |
| 556 | 556 | fossil_free(zDate); |
| 557 | 557 | if( g.perm.Debug ){ |
| 558 | 558 | @ <span class="debug">\ |
| 559 | - @ <a href="%R/artifact/%h(p->zUuid)">(artifact)</a></span> | |
| 559 | + @ <a href="%R/artifact/%h(p->zUuid)">(artifact-%d(p->fpid))</a></span> | |
| 560 | 560 | } |
| 561 | 561 | if( p->pLeaf ){ |
| 562 | 562 | zDate = db_text(0, "SELECT datetime(%.17g)", pPost->rDate); |
| 563 | 563 | if( fossil_strcmp(pOPost->zUser,pPost->zUser)==0 ){ |
| 564 | 564 | @ and edited on %h(zDate) |
| @@ -566,11 +566,12 @@ | ||
| 566 | 566 | @ as edited by %h(pPost->zUser) on %h(zDate) |
| 567 | 567 | } |
| 568 | 568 | fossil_free(zDate); |
| 569 | 569 | if( g.perm.Debug ){ |
| 570 | 570 | @ <span class="debug">\ |
| 571 | - @ <a href="%R/artifact/%h(p->pLeaf->zUuid)">(artifact)</a></span> | |
| 571 | + @ <a href="%R/artifact/%h(p->pLeaf->zUuid)">\ | |
| 572 | + @ (artifact-%d(p->pLeaf->fpid))</a></span> | |
| 572 | 573 | } |
| 573 | 574 | manifest_destroy(pOPost); |
| 574 | 575 | } |
| 575 | 576 | if( fpid!=target ){ |
| 576 | 577 | @ %z(href("%R/forumpost/%S",zUuid))[link]</a> |
| 577 | 578 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -432,11 +432,11 @@ | |
| 432 | @ edit of %z(href("%R/forumpost/%S?t=%c",p->pEdit->zUuid,cMode))\ |
| 433 | @ %d(p->pEdit->sid)</a> |
| 434 | } |
| 435 | if( g.perm.Debug ){ |
| 436 | @ <span class="debug">\ |
| 437 | @ <a href="%R/artifact/%h(p->zUuid)">(artifact)</a></span> |
| 438 | } |
| 439 | if( p->firt ){ |
| 440 | ForumEntry *pIrt = p->pPrev; |
| 441 | while( pIrt && pIrt->fpid!=p->firt ) pIrt = pIrt->pPrev; |
| 442 | if( pIrt ){ |
| @@ -554,11 +554,11 @@ | |
| 554 | @ (%d(p->pLeaf?p->pLeaf->sid:p->sid)) By %h(zDisplayName) on %h(zDate) |
| 555 | fossil_free(zDisplayName); |
| 556 | fossil_free(zDate); |
| 557 | if( g.perm.Debug ){ |
| 558 | @ <span class="debug">\ |
| 559 | @ <a href="%R/artifact/%h(p->zUuid)">(artifact)</a></span> |
| 560 | } |
| 561 | if( p->pLeaf ){ |
| 562 | zDate = db_text(0, "SELECT datetime(%.17g)", pPost->rDate); |
| 563 | if( fossil_strcmp(pOPost->zUser,pPost->zUser)==0 ){ |
| 564 | @ and edited on %h(zDate) |
| @@ -566,11 +566,12 @@ | |
| 566 | @ as edited by %h(pPost->zUser) on %h(zDate) |
| 567 | } |
| 568 | fossil_free(zDate); |
| 569 | if( g.perm.Debug ){ |
| 570 | @ <span class="debug">\ |
| 571 | @ <a href="%R/artifact/%h(p->pLeaf->zUuid)">(artifact)</a></span> |
| 572 | } |
| 573 | manifest_destroy(pOPost); |
| 574 | } |
| 575 | if( fpid!=target ){ |
| 576 | @ %z(href("%R/forumpost/%S",zUuid))[link]</a> |
| 577 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -432,11 +432,11 @@ | |
| 432 | @ edit of %z(href("%R/forumpost/%S?t=%c",p->pEdit->zUuid,cMode))\ |
| 433 | @ %d(p->pEdit->sid)</a> |
| 434 | } |
| 435 | if( g.perm.Debug ){ |
| 436 | @ <span class="debug">\ |
| 437 | @ <a href="%R/artifact/%h(p->zUuid)">(artifact-%d(p->fpid))</a></span> |
| 438 | } |
| 439 | if( p->firt ){ |
| 440 | ForumEntry *pIrt = p->pPrev; |
| 441 | while( pIrt && pIrt->fpid!=p->firt ) pIrt = pIrt->pPrev; |
| 442 | if( pIrt ){ |
| @@ -554,11 +554,11 @@ | |
| 554 | @ (%d(p->pLeaf?p->pLeaf->sid:p->sid)) By %h(zDisplayName) on %h(zDate) |
| 555 | fossil_free(zDisplayName); |
| 556 | fossil_free(zDate); |
| 557 | if( g.perm.Debug ){ |
| 558 | @ <span class="debug">\ |
| 559 | @ <a href="%R/artifact/%h(p->zUuid)">(artifact-%d(p->fpid))</a></span> |
| 560 | } |
| 561 | if( p->pLeaf ){ |
| 562 | zDate = db_text(0, "SELECT datetime(%.17g)", pPost->rDate); |
| 563 | if( fossil_strcmp(pOPost->zUser,pPost->zUser)==0 ){ |
| 564 | @ and edited on %h(zDate) |
| @@ -566,11 +566,12 @@ | |
| 566 | @ as edited by %h(pPost->zUser) on %h(zDate) |
| 567 | } |
| 568 | fossil_free(zDate); |
| 569 | if( g.perm.Debug ){ |
| 570 | @ <span class="debug">\ |
| 571 | @ <a href="%R/artifact/%h(p->pLeaf->zUuid)">\ |
| 572 | @ (artifact-%d(p->pLeaf->fpid))</a></span> |
| 573 | } |
| 574 | manifest_destroy(pOPost); |
| 575 | } |
| 576 | if( fpid!=target ){ |
| 577 | @ %z(href("%R/forumpost/%S",zUuid))[link]</a> |
| 578 |