Fossil SCM
Improvement to the pivot-finder so that it works even if there are time-warps in the graph.
Commit
917f1c21e52a299048c78491147a53d405f65b39a56e86f600cd1c63dc0b9171
Parent
cf6fa2f34a1dd1c…
1 file changed
+1
-1
+1
-1
| --- src/pivot.c | ||
| +++ src/pivot.c | ||
| @@ -118,11 +118,11 @@ | ||
| 118 | 118 | ); |
| 119 | 119 | |
| 120 | 120 | /* Add to the queue all ancestors of :rid. |
| 121 | 121 | */ |
| 122 | 122 | db_prepare(&i1, |
| 123 | - "INSERT OR IGNORE INTO aqueue " | |
| 123 | + "REPLACE INTO aqueue " | |
| 124 | 124 | "SELECT plink.pid," |
| 125 | 125 | " coalesce((SELECT mtime FROM event X WHERE X.objid=plink.pid), 0.0)," |
| 126 | 126 | " 1," |
| 127 | 127 | " aqueue.src " |
| 128 | 128 | " FROM plink, aqueue" |
| 129 | 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 | "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 |