Fossil

Check-in [5277d53d]
Login

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

Overview
Comment:Change the test-parse-manifest command so that it does not require a repository.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5277d53da733354a8257b25b03c881a4ff450bcf
User & Date: drh 2010-10-26 18:37:09
Context
2010-10-26
21:31
Update the makefile to enable USE_PREAD on the BSDs. check-in: b84b954f user: drh tags: trunk
19:01
merge from trunk check-in: 4260bc6a user: wolfgang tags: StvPrivateHook2
18:37
Change the test-parse-manifest command so that it does not require a repository. check-in: 5277d53d user: drh tags: trunk
18:29
Change the "artifact" command to accept the -R or --repository command-line options. Ticket [d3ab7965c636275e51]. check-in: d6e21fdd user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/manifest.c.

895
896
897
898
899
900
901

902
903
904
905
906
907
908
909
910
911
912
** Parse the manifest and discarded.  Use for testing only.
*/
void manifest_test_parse_cmd(void){
  Manifest *p;
  Blob b;
  int i;
  int n = 1;

  if( g.argc!=3 && g.argc!=4 ){
    usage("FILENAME");
  }
  db_must_be_within_tree();
  blob_read_from_file(&b, g.argv[2]);
  if( g.argc>3 ) n = atoi(g.argv[3]);
  for(i=0; i<n; i++){
    Blob b2;
    blob_copy(&b2, &b);
    p = manifest_parse(&b2, 0);
    manifest_destroy(p);







>



<







895
896
897
898
899
900
901
902
903
904
905

906
907
908
909
910
911
912
** Parse the manifest and discarded.  Use for testing only.
*/
void manifest_test_parse_cmd(void){
  Manifest *p;
  Blob b;
  int i;
  int n = 1;
  sqlite3_open(":memory:", &g.db);
  if( g.argc!=3 && g.argc!=4 ){
    usage("FILENAME");
  }

  blob_read_from_file(&b, g.argv[2]);
  if( g.argc>3 ) n = atoi(g.argv[3]);
  for(i=0; i<n; i++){
    Blob b2;
    blob_copy(&b2, &b);
    p = manifest_parse(&b2, 0);
    manifest_destroy(p);