Fossil SCM

Change the test-parse-manifest command so that it does not require a repository.

drh 2010-10-26 18:37 trunk
Commit 5277d53da733354a8257b25b03c881a4ff450bcf
1 file changed +1 -1
+1 -1
--- src/manifest.c
+++ src/manifest.c
@@ -897,14 +897,14 @@
897897
void manifest_test_parse_cmd(void){
898898
Manifest *p;
899899
Blob b;
900900
int i;
901901
int n = 1;
902
+ sqlite3_open(":memory:", &g.db);
902903
if( g.argc!=3 && g.argc!=4 ){
903904
usage("FILENAME");
904905
}
905
- db_must_be_within_tree();
906906
blob_read_from_file(&b, g.argv[2]);
907907
if( g.argc>3 ) n = atoi(g.argv[3]);
908908
for(i=0; i<n; i++){
909909
Blob b2;
910910
blob_copy(&b2, &b);
911911
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button