Fossil

Check-in [bc7af519]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:renamed json timeline "showFiles" option to "files" because we do not really "show" anything."
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | json-multitag-test | json
Files: files | file ages | folders
SHA1:bc7af5192a40230c43f1ad7be967ead92c608113
User & Date: stephan 2011-10-02 20:15:17
Context
2011-10-02
21:01
moved /json/branch code into its own file. check-in: 1a4c874e user: stephan tags: json-multitag-test, json
20:15
renamed json timeline "showFiles" option to "files" because we do not really "show" anything." check-in: bc7af519 user: stephan tags: json-multitag-test, json
19:57
Added tag/branch option to /json/timeline/ci, analog to HTML mode t/r options. check-in: 76212851 user: stephan tags: json-multitag-test, json
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/json_timeline.c.

378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
  char warnStringToArrayFailed = 0;
  Blob sql = empty_blob;
  if( !g.perm.Read/* && !g.perm.RdTkt && !g.perm.RdWiki*/ ){
    g.json.resultCode = FSL_JSON_E_DENIED;
    return NULL;
  }
  if( g.isHTTP ){
    showFiles = json_getenv_bool("showFiles",0);
  }else{
    showFiles = 0!=find_option("show-files", "f",0);
  }
  payV = cson_value_new_object();
  pay = cson_value_get_object(payV);
  check = json_timeline_setup_sql( "ci", &sql, pay );
  if(check){
    g.json.resultCode = check;
    goto error;







|

|







378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
  char warnStringToArrayFailed = 0;
  Blob sql = empty_blob;
  if( !g.perm.Read/* && !g.perm.RdTkt && !g.perm.RdWiki*/ ){
    g.json.resultCode = FSL_JSON_E_DENIED;
    return NULL;
  }
  if( g.isHTTP ){
    showFiles = json_getenv_bool("files",0);
  }else{
    showFiles = 0!=find_option("files", "f",0);
  }
  payV = cson_value_new_object();
  pay = cson_value_get_object(payV);
  check = json_timeline_setup_sql( "ci", &sql, pay );
  if(check){
    g.json.resultCode = check;
    goto error;