Fossil SCM
In "fossil configuration export --since", take the start time from the value of the query with db_int64(); the return code of db_multi_exec() was used, so every entry was exported.
Commit
b233ae438e9a20a5c824393c986e9226b5553ce1aa95f39b927e90fca11919f3
Parent
711a8d11aa00994…
1 file changed
+1
-1
+1
-1
| --- src/configure.c | ||
| +++ src/configure.c | ||
| @@ -845,11 +845,11 @@ | ||
| 845 | 845 | if( g.argc!=5 ){ |
| 846 | 846 | usage("export AREA FILENAME"); |
| 847 | 847 | } |
| 848 | 848 | mask = configure_name_to_mask(g.argv[3], 1); |
| 849 | 849 | if( zSince ){ |
| 850 | - iStart = db_multi_exec( | |
| 850 | + iStart = db_int64(0, | |
| 851 | 851 | "SELECT coalesce(strftime('%%s',%Q),strftime('%%s','now',%Q))+0", |
| 852 | 852 | zSince, zSince |
| 853 | 853 | ); |
| 854 | 854 | }else{ |
| 855 | 855 | iStart = 0; |
| 856 | 856 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -845,11 +845,11 @@ | |
| 845 | if( g.argc!=5 ){ |
| 846 | usage("export AREA FILENAME"); |
| 847 | } |
| 848 | mask = configure_name_to_mask(g.argv[3], 1); |
| 849 | if( zSince ){ |
| 850 | iStart = db_multi_exec( |
| 851 | "SELECT coalesce(strftime('%%s',%Q),strftime('%%s','now',%Q))+0", |
| 852 | zSince, zSince |
| 853 | ); |
| 854 | }else{ |
| 855 | iStart = 0; |
| 856 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -845,11 +845,11 @@ | |
| 845 | if( g.argc!=5 ){ |
| 846 | usage("export AREA FILENAME"); |
| 847 | } |
| 848 | mask = configure_name_to_mask(g.argv[3], 1); |
| 849 | if( zSince ){ |
| 850 | iStart = db_int64(0, |
| 851 | "SELECT coalesce(strftime('%%s',%Q),strftime('%%s','now',%Q))+0", |
| 852 | zSince, zSince |
| 853 | ); |
| 854 | }else{ |
| 855 | iStart = 0; |
| 856 |