Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | An off-mailing-list patch which fixes the lack of deleted files from /json/timeline/checkin's file list. Thanks to Edgardo Cruz for tracking this down. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
cd55efe7754dd7e531e0c903e53a278b |
User & Date: | stephan 2018-06-01 20:16:17 |
Context
2018-06-04
| ||
02:43 | Update the stats.wiki page with recent numbers. check-in: 6dc67e871e user: drh tags: trunk | |
2018-06-01
| ||
20:16 | An off-mailing-list patch which fixes the lack of deleted files from /json/timeline/checkin's file list. Thanks to Edgardo Cruz for tracking this down. check-in: cd55efe775 user: stephan tags: trunk | |
2018-05-31
| ||
15:21 | Improvement to the pivot-finder so that it works even if there are time-warps in the graph. check-in: 917f1c21e5 user: drh tags: trunk | |
Changes
Changes to src/json_timeline.c.
︙ | ︙ | |||
316 317 318 319 320 321 322 | ** or 0 for defaults. */ cson_value * json_get_changed_files(int rid, int flags){ cson_value * rowsV = NULL; cson_array * rows = NULL; Stmt q = empty_Stmt; db_prepare(&q, | | | | | | | | > | | | | | | 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 | ** or 0 for defaults. */ cson_value * json_get_changed_files(int rid, int flags){ cson_value * rowsV = NULL; cson_array * rows = NULL; Stmt q = empty_Stmt; db_prepare(&q, "SELECT (pid<=0) AS isnew," " (fid==0) AS isdel," " (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name," " (SELECT uuid FROM blob WHERE rid=fid) as uuid," " (SELECT uuid FROM blob WHERE rid=pid) as parent," " blob.size as size" " FROM mlink" " LEFT JOIN blob ON blob.rid=fid" " WHERE mid=%d AND pid!=fid" " AND NOT mlink.isaux" " ORDER BY name /*sort*/", rid ); while( (SQLITE_ROW == db_step(&q)) ){ cson_value * rowV = cson_value_new_object(); cson_object * row = cson_value_get_object(rowV); int const isNew = db_column_int(&q,0); int const isDel = db_column_int(&q,1); char * zDownload = NULL; if(!rowsV){ |
︙ | ︙ |