Fossil SCM

Use disjoint timelines when filtering by the chng timeline query parameter

andygoth 2016-11-07 04:06 trunk
Commit e7bdbbe435556a769cf3cb6b1596d1655a29479a
1 file changed +4 -1
+4 -1
--- src/timeline.c
+++ src/timeline.c
@@ -1805,11 +1805,14 @@
18051805
int n;
18061806
const char *zEType = "timeline item";
18071807
char *zDate;
18081808
Blob cond;
18091809
blob_zero(&cond);
1810
- addFileGlobExclusion(zChng, &cond);
1810
+ if( zChng && *zChng ){
1811
+ addFileGlobExclusion(zChng, &cond);
1812
+ tmFlags |= TIMELINE_DISJOINT;
1813
+ }
18111814
if( zUses ){
18121815
blob_append_sql(&cond, " AND event.objid IN usesfile ");
18131816
}
18141817
if( renameOnly ){
18151818
blob_append_sql(&cond, " AND event.objid IN rnfile ");
18161819
--- src/timeline.c
+++ src/timeline.c
@@ -1805,11 +1805,14 @@
1805 int n;
1806 const char *zEType = "timeline item";
1807 char *zDate;
1808 Blob cond;
1809 blob_zero(&cond);
1810 addFileGlobExclusion(zChng, &cond);
 
 
 
1811 if( zUses ){
1812 blob_append_sql(&cond, " AND event.objid IN usesfile ");
1813 }
1814 if( renameOnly ){
1815 blob_append_sql(&cond, " AND event.objid IN rnfile ");
1816
--- src/timeline.c
+++ src/timeline.c
@@ -1805,11 +1805,14 @@
1805 int n;
1806 const char *zEType = "timeline item";
1807 char *zDate;
1808 Blob cond;
1809 blob_zero(&cond);
1810 if( zChng && *zChng ){
1811 addFileGlobExclusion(zChng, &cond);
1812 tmFlags |= TIMELINE_DISJOINT;
1813 }
1814 if( zUses ){
1815 blob_append_sql(&cond, " AND event.objid IN usesfile ");
1816 }
1817 if( renameOnly ){
1818 blob_append_sql(&cond, " AND event.objid IN rnfile ");
1819

Keyboard Shortcuts

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