Fossil

Check-in [5ddfe3d6]
Login

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

Overview
Comment:Removed a test/debug #if block which i accidentally left enabled in [73e28dd718].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | json
Files: files | file ages | folders
SHA1: 5ddfe3d6630e137d170ef38dd684883fedb47782
User & Date: stephan 2011-09-29 13:08:47.345
Context
2011-09-29
15:23
Added /json/rebuild. Is likely to fail w/ an AJAX timeout for large repos, which will probably cause the rebuild to roll back on the next open :/. Takes 21sec on my 32-bit netbook to rebuild the fossil repo. ... (check-in: 071de8f1 user: stephan tags: json)
13:08
Removed a test/debug #if block which i accidentally left enabled in [73e28dd718]. ... (check-in: 5ddfe3d6 user: stephan tags: json)
2011-09-28
22:41
moved some db_finalize() calls so that they would also be called in error cases. ... (check-in: 997274e9 user: stephan tags: json)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/json_wiki.c.
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
}

/*
** Implementation of /json/wiki/save.
*/
static cson_value * json_wiki_save(){
  char const createIfNotExists = json_getenv_bool("createIfNotExists",0);
#if 0
  return json_wiki_create_or_save(0,createIfNotExists);
#else
  cson_value * v = json_wiki_create_or_save(0,createIfNotExists);
  cson_object * o = cson_value_get_object(v);
  cson_object_set(o,"createIfNotExists", cson_value_new_bool(createIfNotExists));
#endif
}

/*
** Implementation of /json/wiki/list.
*/
static cson_value * json_wiki_list(){
  cson_value * listV = NULL;







<

<
<
<
<
<







207
208
209
210
211
212
213

214





215
216
217
218
219
220
221
}

/*
** Implementation of /json/wiki/save.
*/
static cson_value * json_wiki_save(){
  char const createIfNotExists = json_getenv_bool("createIfNotExists",0);

  return json_wiki_create_or_save(0,createIfNotExists);





}

/*
** Implementation of /json/wiki/list.
*/
static cson_value * json_wiki_list(){
  cson_value * listV = NULL;