Fossil SCM
Avoid duplicate entries in the output of "fossil finfo".
Commit
26c283467ad02e3661de355af257c0b8187fe9cd
Parent
2018ad2cc5c8295…
1 file changed
+1
-1
+1
-1
| --- src/finfo.c | ||
| +++ src/finfo.c | ||
| @@ -182,11 +182,11 @@ | ||
| 182 | 182 | if( rid==0 ){ |
| 183 | 183 | fossil_fatal("no history for file: %b", &fname); |
| 184 | 184 | } |
| 185 | 185 | zFilename = blob_str(&fname); |
| 186 | 186 | db_prepare(&q, |
| 187 | - "SELECT b.uuid, ci.uuid, date(event.mtime%s)," | |
| 187 | + "SELECT DISTINCT b.uuid, ci.uuid, date(event.mtime%s)," | |
| 188 | 188 | " coalesce(event.ecomment, event.comment)," |
| 189 | 189 | " coalesce(event.euser, event.user)," |
| 190 | 190 | " (SELECT value FROM tagxref WHERE tagid=%d AND tagtype>0" |
| 191 | 191 | " AND tagxref.rid=mlink.mid)" /* Tags */ |
| 192 | 192 | " FROM mlink, blob b, event, blob ci, filename" |
| 193 | 193 |
| --- src/finfo.c | |
| +++ src/finfo.c | |
| @@ -182,11 +182,11 @@ | |
| 182 | if( rid==0 ){ |
| 183 | fossil_fatal("no history for file: %b", &fname); |
| 184 | } |
| 185 | zFilename = blob_str(&fname); |
| 186 | db_prepare(&q, |
| 187 | "SELECT b.uuid, ci.uuid, date(event.mtime%s)," |
| 188 | " coalesce(event.ecomment, event.comment)," |
| 189 | " coalesce(event.euser, event.user)," |
| 190 | " (SELECT value FROM tagxref WHERE tagid=%d AND tagtype>0" |
| 191 | " AND tagxref.rid=mlink.mid)" /* Tags */ |
| 192 | " FROM mlink, blob b, event, blob ci, filename" |
| 193 |
| --- src/finfo.c | |
| +++ src/finfo.c | |
| @@ -182,11 +182,11 @@ | |
| 182 | if( rid==0 ){ |
| 183 | fossil_fatal("no history for file: %b", &fname); |
| 184 | } |
| 185 | zFilename = blob_str(&fname); |
| 186 | db_prepare(&q, |
| 187 | "SELECT DISTINCT b.uuid, ci.uuid, date(event.mtime%s)," |
| 188 | " coalesce(event.ecomment, event.comment)," |
| 189 | " coalesce(event.euser, event.user)," |
| 190 | " (SELECT value FROM tagxref WHERE tagid=%d AND tagtype>0" |
| 191 | " AND tagxref.rid=mlink.mid)" /* Tags */ |
| 192 | " FROM mlink, blob b, event, blob ci, filename" |
| 193 |