Fossil SCM
extend new "comment" feature of "info" subcommand to include username
Commit
391ef2853b287ed9e95905487490e3a747d533e5
Parent
da52ff93636eeb1…
1 file changed
+1
-1
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -68,11 +68,11 @@ | ||
| 68 | 68 | free(zUuid); |
| 69 | 69 | free(zDate); |
| 70 | 70 | } |
| 71 | 71 | if( zUuid && showComment ){ |
| 72 | 72 | zComment = db_text(0, |
| 73 | - "SELECT coalesce(ecomment,comment) FROM event WHERE objid=%d", | |
| 73 | + "SELECT coalesce(ecomment,comment) || ' (user: ' || coalesce(euser,user,'?') || ')' FROM event WHERE objid=%d", | |
| 74 | 74 | rid |
| 75 | 75 | ); |
| 76 | 76 | } |
| 77 | 77 | db_prepare(&q, "SELECT uuid, pid FROM plink JOIN blob ON pid=rid " |
| 78 | 78 | " WHERE cid=%d", rid); |
| 79 | 79 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -68,11 +68,11 @@ | |
| 68 | free(zUuid); |
| 69 | free(zDate); |
| 70 | } |
| 71 | if( zUuid && showComment ){ |
| 72 | zComment = db_text(0, |
| 73 | "SELECT coalesce(ecomment,comment) FROM event WHERE objid=%d", |
| 74 | rid |
| 75 | ); |
| 76 | } |
| 77 | db_prepare(&q, "SELECT uuid, pid FROM plink JOIN blob ON pid=rid " |
| 78 | " WHERE cid=%d", rid); |
| 79 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -68,11 +68,11 @@ | |
| 68 | free(zUuid); |
| 69 | free(zDate); |
| 70 | } |
| 71 | if( zUuid && showComment ){ |
| 72 | zComment = db_text(0, |
| 73 | "SELECT coalesce(ecomment,comment) || ' (user: ' || coalesce(euser,user,'?') || ')' FROM event WHERE objid=%d", |
| 74 | rid |
| 75 | ); |
| 76 | } |
| 77 | db_prepare(&q, "SELECT uuid, pid FROM plink JOIN blob ON pid=rid " |
| 78 | " WHERE cid=%d", rid); |
| 79 |