Fossil

Check-in [08197f96]
Login

Check-in [08197f96]

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

Overview
Comment:Swapped incorrect diff argument order for /json/wiki/diff.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 08197f963458d6c8427c84f61540621204c8de9e
User & Date: stephan 2016-02-06 19:17:25.102
References
2016-02-06
22:41
Fixed json.test problem with fossil configured without --json. Removed the knownBug marker from the test json-wiki-diff-diff since [08197f96] fixed the bug it identified. ... (check-in: c35152a5 user: rberteig tags: trunk)
Context
2016-02-06
20:35
Normalize the the directory in which the Fossil being tested is found so relative paths also work. ... (check-in: 25f7d3c1 user: andybradford tags: trunk)
19:17
Swapped incorrect diff argument order for /json/wiki/diff. ... (check-in: 08197f96 user: stephan tags: trunk)
02:46
Add test cases for fossil json. Improve the test suite to support a way to treat expected non-zero status exits from fossil as success when warrented. Made minor bug fixes to the test framework, and to several test cases unrelated to JSON support. ... (check-in: 62627615 user: rberteig tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/json_wiki.c.
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
  }

  blob_init(&w1, pW1->zWiki, -1);
  blob_zero(&w2);
  blob_init(&w2, pW2->zWiki, -1);
  blob_zero(&d);
  diffFlags = DIFF_IGNORE_EOLWS | DIFF_STRIP_EOLCR;
  text_diff(&w2, &w1, &d, 0, diffFlags);
  blob_reset(&w1);
  blob_reset(&w2);

  pay = cson_new_object();
  
  zUuid = json_wiki_get_uuid_for_rid( pW1->rid );
  cson_object_set(pay, "v1", json_new_string(zUuid) );







|







544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
  }

  blob_init(&w1, pW1->zWiki, -1);
  blob_zero(&w2);
  blob_init(&w2, pW2->zWiki, -1);
  blob_zero(&d);
  diffFlags = DIFF_IGNORE_EOLWS | DIFF_STRIP_EOLCR;
  text_diff(&w1, &w2, &d, 0, diffFlags);
  blob_reset(&w1);
  blob_reset(&w2);

  pay = cson_new_object();
  
  zUuid = json_wiki_get_uuid_for_rid( pW1->rid );
  cson_object_set(pay, "v1", json_new_string(zUuid) );