Fossil SCM

fixed a mis-sorting in the json timeline, caused by refactoring in a recent commit.

stephan 2011-10-05 02:31 UTC json-multitag-test
Commit 824ed5fb65423e5936e2ae520d9dc74f25d3f866
1 file changed +3
--- src/json_timeline.c
+++ src/json_timeline.c
@@ -221,10 +221,13 @@
221221
blob_appendf(pSql,
222222
" AND event.mtime<=(SELECT julianday(%Q,'utc')) "
223223
" ORDER BY event.mtime DESC ",
224224
zBefore);
225225
rc = -1;
226
+ }else{
227
+ blob_append(pSql, " ORDER BY event.mtime DESC ", -1);
228
+ rc = 0;
226229
}
227230
return rc;
228231
}
229232
230233
/*
231234
--- src/json_timeline.c
+++ src/json_timeline.c
@@ -221,10 +221,13 @@
221 blob_appendf(pSql,
222 " AND event.mtime<=(SELECT julianday(%Q,'utc')) "
223 " ORDER BY event.mtime DESC ",
224 zBefore);
225 rc = -1;
 
 
 
226 }
227 return rc;
228 }
229
230 /*
231
--- src/json_timeline.c
+++ src/json_timeline.c
@@ -221,10 +221,13 @@
221 blob_appendf(pSql,
222 " AND event.mtime<=(SELECT julianday(%Q,'utc')) "
223 " ORDER BY event.mtime DESC ",
224 zBefore);
225 rc = -1;
226 }else{
227 blob_append(pSql, " ORDER BY event.mtime DESC ", -1);
228 rc = 0;
229 }
230 return rc;
231 }
232
233 /*
234

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button