Fossil SCM

Do not count divider lines as "items" on the timeline.

drh 2012-09-05 20:54 trunk
Commit 4913964321c48b6f02be59d38f5e12679369590b
1 file changed +1 -1
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -1186,11 +1186,11 @@
11861186
blob_appendf(&sql, " ORDER BY event.mtime DESC");
11871187
}
11881188
blob_appendf(&sql, " LIMIT %d", nEntry);
11891189
db_multi_exec("%s", blob_str(&sql));
11901190
1191
- n = db_int(0, "SELECT count(*) FROM timeline /*scan*/");
1191
+ n = db_int(0, "SELECT count(*) FROM timeline WHERE etype!='div' /*scan*/");
11921192
if( zAfter==0 && zBefore==0 && zCirca==0 ){
11931193
blob_appendf(&desc, "%d most recent %ss", n, zEType);
11941194
}else{
11951195
blob_appendf(&desc, "%d %ss", n, zEType);
11961196
}
11971197
--- src/timeline.c
+++ src/timeline.c
@@ -1186,11 +1186,11 @@
1186 blob_appendf(&sql, " ORDER BY event.mtime DESC");
1187 }
1188 blob_appendf(&sql, " LIMIT %d", nEntry);
1189 db_multi_exec("%s", blob_str(&sql));
1190
1191 n = db_int(0, "SELECT count(*) FROM timeline /*scan*/");
1192 if( zAfter==0 && zBefore==0 && zCirca==0 ){
1193 blob_appendf(&desc, "%d most recent %ss", n, zEType);
1194 }else{
1195 blob_appendf(&desc, "%d %ss", n, zEType);
1196 }
1197
--- src/timeline.c
+++ src/timeline.c
@@ -1186,11 +1186,11 @@
1186 blob_appendf(&sql, " ORDER BY event.mtime DESC");
1187 }
1188 blob_appendf(&sql, " LIMIT %d", nEntry);
1189 db_multi_exec("%s", blob_str(&sql));
1190
1191 n = db_int(0, "SELECT count(*) FROM timeline WHERE etype!='div' /*scan*/");
1192 if( zAfter==0 && zBefore==0 && zCirca==0 ){
1193 blob_appendf(&desc, "%d most recent %ss", n, zEType);
1194 }else{
1195 blob_appendf(&desc, "%d %ss", n, zEType);
1196 }
1197

Keyboard Shortcuts

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