Check-in [69dcef960f]
Not logged in

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

Overview
SHA1 Hash:69dcef960f6d5d8bb3a3f79d038c58e83e186823
Date: 2010-03-07 17:43:00
User: drh
Comment:Clean up formatting and comments asociated with the "new" command. No changes to functionality.
Tags And Properties
Changes

Changes to src/db.c

903 ** new repositories. 903 ** new repositories. 904 ** 904 ** 905 ** The zInitialDate parameter determines the date of the initial check-in 905 ** The zInitialDate parameter determines the date of the initial check-in 906 ** that is automatically created. If zInitialDate is 0 then no initial 906 ** that is automatically created. If zInitialDate is 0 then no initial 907 ** check-in is created. The makeServerCodes flag determines whether or 907 ** check-in is created. The makeServerCodes flag determines whether or 908 ** not server and project codes are invented for this repository. 908 ** not server and project codes are invented for this repository. 909 */ 909 */ 910 void db_initial_setup (const char *zInitialDate, const char *zDefaultUser, int m | 910 void db_initial_setup( > 911 const char *zInitialDate, /* Initial date of repository. (ex: "now") */ > 912 const char *zDefaultUser, /* Default user for the repository */ > 913 int makeServerCodes /* True to make new server & project codes */ > 914 ){ 911 char *zDate; 915 char *zDate; 912 Blob hash; 916 Blob hash; 913 Blob manifest; 917 Blob manifest; 914 918 915 db_set("content-schema", CONTENT_SCHEMA, 0); 919 db_set("content-schema", CONTENT_SCHEMA, 0); 916 db_set("aux-schema", AUX_SCHEMA, 0); 920 db_set("aux-schema", AUX_SCHEMA, 0); 917 if( makeServerCodes ){ 921 if( makeServerCodes ){ ................................................................................................................................................................................ 960 ** By default, your current login name is used to create the default 964 ** By default, your current login name is used to create the default 961 ** admin user. This can be overridden using the -A|--admin-user 965 ** admin user. This can be overridden using the -A|--admin-user 962 ** parameter. 966 ** parameter. 963 ** 967 ** 964 ** Options: 968 ** Options: 965 ** 969 ** 966 ** --admin-user|-A USERNAME 970 ** --admin-user|-A USERNAME > 971 ** --date-override DATETIME 967 ** 972 ** 968 */ 973 */ 969 void create_repository_cmd(void){ 974 void create_repository_cmd(void){ 970 char *zPassword; 975 char *zPassword; 971 const char *zDate; /* Date of the initial check-in */ 976 const char *zDate; /* Date of the initial check-in */ 972 const char *zDefaultUser; /* Optional name of the default user */ 977 const char *zDefaultUser; /* Optional name of the default user */ 973 978