Fossil SCM

Avoid duplicate entries in the output of "fossil finfo".

drh 2015-05-10 17:35 trunk
Commit 26c283467ad02e3661de355af257c0b8187fe9cd
1 file changed +1 -1
+1 -1
--- src/finfo.c
+++ src/finfo.c
@@ -182,11 +182,11 @@
182182
if( rid==0 ){
183183
fossil_fatal("no history for file: %b", &fname);
184184
}
185185
zFilename = blob_str(&fname);
186186
db_prepare(&q,
187
- "SELECT b.uuid, ci.uuid, date(event.mtime%s),"
187
+ "SELECT DISTINCT b.uuid, ci.uuid, date(event.mtime%s),"
188188
" coalesce(event.ecomment, event.comment),"
189189
" coalesce(event.euser, event.user),"
190190
" (SELECT value FROM tagxref WHERE tagid=%d AND tagtype>0"
191191
" AND tagxref.rid=mlink.mid)" /* Tags */
192192
" FROM mlink, blob b, event, blob ci, filename"
193193
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button