Fossil SCM
Change the test-parse-manifest command so that it does not require a repository.
Commit
5277d53da733354a8257b25b03c881a4ff450bcf
Parent
d6e21fddd3fb8cf…
1 file changed
+1
-1
+1
-1
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -897,14 +897,14 @@ | ||
| 897 | 897 | void manifest_test_parse_cmd(void){ |
| 898 | 898 | Manifest *p; |
| 899 | 899 | Blob b; |
| 900 | 900 | int i; |
| 901 | 901 | int n = 1; |
| 902 | + sqlite3_open(":memory:", &g.db); | |
| 902 | 903 | if( g.argc!=3 && g.argc!=4 ){ |
| 903 | 904 | usage("FILENAME"); |
| 904 | 905 | } |
| 905 | - db_must_be_within_tree(); | |
| 906 | 906 | blob_read_from_file(&b, g.argv[2]); |
| 907 | 907 | if( g.argc>3 ) n = atoi(g.argv[3]); |
| 908 | 908 | for(i=0; i<n; i++){ |
| 909 | 909 | Blob b2; |
| 910 | 910 | blob_copy(&b2, &b); |
| 911 | 911 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -897,14 +897,14 @@ | |
| 897 | void manifest_test_parse_cmd(void){ |
| 898 | Manifest *p; |
| 899 | Blob b; |
| 900 | int i; |
| 901 | int n = 1; |
| 902 | if( g.argc!=3 && g.argc!=4 ){ |
| 903 | usage("FILENAME"); |
| 904 | } |
| 905 | db_must_be_within_tree(); |
| 906 | blob_read_from_file(&b, g.argv[2]); |
| 907 | if( g.argc>3 ) n = atoi(g.argv[3]); |
| 908 | for(i=0; i<n; i++){ |
| 909 | Blob b2; |
| 910 | blob_copy(&b2, &b); |
| 911 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -897,14 +897,14 @@ | |
| 897 | void manifest_test_parse_cmd(void){ |
| 898 | Manifest *p; |
| 899 | Blob b; |
| 900 | int i; |
| 901 | int n = 1; |
| 902 | sqlite3_open(":memory:", &g.db); |
| 903 | if( g.argc!=3 && g.argc!=4 ){ |
| 904 | usage("FILENAME"); |
| 905 | } |
| 906 | blob_read_from_file(&b, g.argv[2]); |
| 907 | if( g.argc>3 ) n = atoi(g.argv[3]); |
| 908 | for(i=0; i<n; i++){ |
| 909 | Blob b2; |
| 910 | blob_copy(&b2, &b); |
| 911 |