Fossil SCM

Improvement to the pivot-finder so that it works even if there are time-warps in the graph.

drh 2018-05-31 15:21 trunk
Commit 917f1c21e52a299048c78491147a53d405f65b39a56e86f600cd1c63dc0b9171
1 file changed +1 -1
+1 -1
--- src/pivot.c
+++ src/pivot.c
@@ -118,11 +118,11 @@
118118
);
119119
120120
/* Add to the queue all ancestors of :rid.
121121
*/
122122
db_prepare(&i1,
123
- "INSERT OR IGNORE INTO aqueue "
123
+ "REPLACE INTO aqueue "
124124
"SELECT plink.pid,"
125125
" coalesce((SELECT mtime FROM event X WHERE X.objid=plink.pid), 0.0),"
126126
" 1,"
127127
" aqueue.src "
128128
" FROM plink, aqueue"
129129
--- src/pivot.c
+++ src/pivot.c
@@ -118,11 +118,11 @@
118 );
119
120 /* Add to the queue all ancestors of :rid.
121 */
122 db_prepare(&i1,
123 "INSERT OR IGNORE INTO aqueue "
124 "SELECT plink.pid,"
125 " coalesce((SELECT mtime FROM event X WHERE X.objid=plink.pid), 0.0),"
126 " 1,"
127 " aqueue.src "
128 " FROM plink, aqueue"
129
--- src/pivot.c
+++ src/pivot.c
@@ -118,11 +118,11 @@
118 );
119
120 /* Add to the queue all ancestors of :rid.
121 */
122 db_prepare(&i1,
123 "REPLACE INTO aqueue "
124 "SELECT plink.pid,"
125 " coalesce((SELECT mtime FROM event X WHERE X.objid=plink.pid), 0.0),"
126 " 1,"
127 " aqueue.src "
128 " FROM plink, aqueue"
129

Keyboard Shortcuts

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