Fossil SCM
Make option '--offset' work again with the 'after' keyword for the 'timeline' command. Regression introduced in [ee2a71b5c7].
Commit
4bfbe5f5b47b230214d4ca34fe83ec208411ac978e12ff39dea4e6167cd06150
Parent
8725737d32c7df7…
1 file changed
+1
-1
+1
-1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -3862,11 +3862,11 @@ | ||
| 3862 | 3862 | }else if( n < 0 ){ |
| 3863 | 3863 | lim = -n; |
| 3864 | 3864 | } |
| 3865 | 3865 | /* Complete the above outer select. */ |
| 3866 | 3866 | blob_append_sql(&sql, |
| 3867 | - "\nORDER BY event.mtime LIMIT %d) t ORDER BY t.mDateTime DESC;", lim); | |
| 3867 | + "\nORDER BY event.mtime LIMIT %d) t ORDER BY t.mDateTime DESC", lim); | |
| 3868 | 3868 | }else{ |
| 3869 | 3869 | blob_append_sql(&sql, "\nORDER BY event.mtime DESC"); |
| 3870 | 3870 | } |
| 3871 | 3871 | if( iOffset>0 ){ |
| 3872 | 3872 | /* Don't handle LIMIT here, otherwise print_timeline() |
| 3873 | 3873 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -3862,11 +3862,11 @@ | |
| 3862 | }else if( n < 0 ){ |
| 3863 | lim = -n; |
| 3864 | } |
| 3865 | /* Complete the above outer select. */ |
| 3866 | blob_append_sql(&sql, |
| 3867 | "\nORDER BY event.mtime LIMIT %d) t ORDER BY t.mDateTime DESC;", lim); |
| 3868 | }else{ |
| 3869 | blob_append_sql(&sql, "\nORDER BY event.mtime DESC"); |
| 3870 | } |
| 3871 | if( iOffset>0 ){ |
| 3872 | /* Don't handle LIMIT here, otherwise print_timeline() |
| 3873 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -3862,11 +3862,11 @@ | |
| 3862 | }else if( n < 0 ){ |
| 3863 | lim = -n; |
| 3864 | } |
| 3865 | /* Complete the above outer select. */ |
| 3866 | blob_append_sql(&sql, |
| 3867 | "\nORDER BY event.mtime LIMIT %d) t ORDER BY t.mDateTime DESC", lim); |
| 3868 | }else{ |
| 3869 | blob_append_sql(&sql, "\nORDER BY event.mtime DESC"); |
| 3870 | } |
| 3871 | if( iOffset>0 ){ |
| 3872 | /* Don't handle LIMIT here, otherwise print_timeline() |
| 3873 |