Fossil SCM
Rebuild now sets user.mtime if it is NULL, per ML thread.
Commit
6fdf91d7936c5ed176316138d65c78c6fa38cd1c
Parent
09f82acd13c3f04…
1 file changed
+3
+3
| --- src/rebuild.c | ||
| +++ src/rebuild.c | ||
| @@ -370,10 +370,13 @@ | ||
| 370 | 370 | " WHERE rid IN (SELECT rid FROM shun JOIN blob USING(uuid))" |
| 371 | 371 | ); |
| 372 | 372 | db_multi_exec( |
| 373 | 373 | "DELETE FROM config WHERE name IN ('remote-code', 'remote-maxid')" |
| 374 | 374 | ); |
| 375 | + db_multi_exec( | |
| 376 | + "UPDATE user SET mtime=strftime('%%s','now') WHERE mtime IS NULL" | |
| 377 | + ); | |
| 375 | 378 | |
| 376 | 379 | /* The following should be count(*) instead of max(rid). max(rid) is |
| 377 | 380 | ** an adequate approximation, however, and is much faster for large |
| 378 | 381 | ** repositories. */ |
| 379 | 382 | totalSize = db_int(0, "SELECT max(rid) FROM blob"); |
| 380 | 383 |
| --- src/rebuild.c | |
| +++ src/rebuild.c | |
| @@ -370,10 +370,13 @@ | |
| 370 | " WHERE rid IN (SELECT rid FROM shun JOIN blob USING(uuid))" |
| 371 | ); |
| 372 | db_multi_exec( |
| 373 | "DELETE FROM config WHERE name IN ('remote-code', 'remote-maxid')" |
| 374 | ); |
| 375 | |
| 376 | /* The following should be count(*) instead of max(rid). max(rid) is |
| 377 | ** an adequate approximation, however, and is much faster for large |
| 378 | ** repositories. */ |
| 379 | totalSize = db_int(0, "SELECT max(rid) FROM blob"); |
| 380 |
| --- src/rebuild.c | |
| +++ src/rebuild.c | |
| @@ -370,10 +370,13 @@ | |
| 370 | " WHERE rid IN (SELECT rid FROM shun JOIN blob USING(uuid))" |
| 371 | ); |
| 372 | db_multi_exec( |
| 373 | "DELETE FROM config WHERE name IN ('remote-code', 'remote-maxid')" |
| 374 | ); |
| 375 | db_multi_exec( |
| 376 | "UPDATE user SET mtime=strftime('%%s','now') WHERE mtime IS NULL" |
| 377 | ); |
| 378 | |
| 379 | /* The following should be count(*) instead of max(rid). max(rid) is |
| 380 | ** an adequate approximation, however, and is much faster for large |
| 381 | ** repositories. */ |
| 382 | totalSize = db_int(0, "SELECT max(rid) FROM blob"); |
| 383 |