Fossil SCM

Do not print extraneous text about project-id and admin-user at the end of an incremental import.

drh 2011-02-22 21:14 trunk
Commit 691fccbaf7afee97c74daa7e1d2653fd608d2614
1 file changed +6 -4
+6 -4
--- src/import.c
+++ src/import.c
@@ -749,10 +749,12 @@
749749
verify_cancel();
750750
db_end_transaction(0);
751751
printf("Vacuuming..."); fflush(stdout);
752752
db_multi_exec("VACUUM");
753753
printf(" ok\n");
754
- printf("project-id: %s\n", db_get("project-code", 0));
755
- printf("server-id: %s\n", db_get("server-code", 0));
756
- zPassword = db_text(0, "SELECT pw FROM user WHERE login=%Q", g.zLogin);
757
- printf("admin-user: %s (password is \"%s\")\n", g.zLogin, zPassword);
754
+ if( !incrFlag ){
755
+ printf("project-id: %s\n", db_get("project-code", 0));
756
+ printf("server-id: %s\n", db_get("server-code", 0));
757
+ zPassword = db_text(0, "SELECT pw FROM user WHERE login=%Q", g.zLogin);
758
+ printf("admin-user: %s (password is \"%s\")\n", g.zLogin, zPassword);
759
+ }
758760
}
759761
--- src/import.c
+++ src/import.c
@@ -749,10 +749,12 @@
749 verify_cancel();
750 db_end_transaction(0);
751 printf("Vacuuming..."); fflush(stdout);
752 db_multi_exec("VACUUM");
753 printf(" ok\n");
754 printf("project-id: %s\n", db_get("project-code", 0));
755 printf("server-id: %s\n", db_get("server-code", 0));
756 zPassword = db_text(0, "SELECT pw FROM user WHERE login=%Q", g.zLogin);
757 printf("admin-user: %s (password is \"%s\")\n", g.zLogin, zPassword);
 
 
758 }
759
--- src/import.c
+++ src/import.c
@@ -749,10 +749,12 @@
749 verify_cancel();
750 db_end_transaction(0);
751 printf("Vacuuming..."); fflush(stdout);
752 db_multi_exec("VACUUM");
753 printf(" ok\n");
754 if( !incrFlag ){
755 printf("project-id: %s\n", db_get("project-code", 0));
756 printf("server-id: %s\n", db_get("server-code", 0));
757 zPassword = db_text(0, "SELECT pw FROM user WHERE login=%Q", g.zLogin);
758 printf("admin-user: %s (password is \"%s\")\n", g.zLogin, zPassword);
759 }
760 }
761

Keyboard Shortcuts

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