Fossil SCM
When creating a new repository always generate an "initial empty check-in" for compatibility with Fossil 1.27 and earlier.
Commit
a56e6bbfc6c51b944fbb1b1173ceceafb7849738
Parent
3e77213a7376fb4…
1 file changed
+1
M
src/db.c
+1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1691,10 +1691,11 @@ | ||
| 1691 | 1691 | db_create_repository(g.argv[2]); |
| 1692 | 1692 | db_open_repository(g.argv[2]); |
| 1693 | 1693 | db_open_config(0); |
| 1694 | 1694 | if( zTemplate ) db_attach(zTemplate, "settingSrc"); |
| 1695 | 1695 | db_begin_transaction(); |
| 1696 | + if( zDate==0 ) zDate = "now"; | |
| 1696 | 1697 | db_initial_setup(zTemplate, zDate, zDefaultUser, makeServerCodes); |
| 1697 | 1698 | db_end_transaction(0); |
| 1698 | 1699 | if( zTemplate ) db_detach("settingSrc"); |
| 1699 | 1700 | if( makeServerCodes ){ |
| 1700 | 1701 | fossil_print("project-id: %s\n", db_get("project-code", 0)); |
| 1701 | 1702 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1691,10 +1691,11 @@ | |
| 1691 | db_create_repository(g.argv[2]); |
| 1692 | db_open_repository(g.argv[2]); |
| 1693 | db_open_config(0); |
| 1694 | if( zTemplate ) db_attach(zTemplate, "settingSrc"); |
| 1695 | db_begin_transaction(); |
| 1696 | db_initial_setup(zTemplate, zDate, zDefaultUser, makeServerCodes); |
| 1697 | db_end_transaction(0); |
| 1698 | if( zTemplate ) db_detach("settingSrc"); |
| 1699 | if( makeServerCodes ){ |
| 1700 | fossil_print("project-id: %s\n", db_get("project-code", 0)); |
| 1701 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1691,10 +1691,11 @@ | |
| 1691 | db_create_repository(g.argv[2]); |
| 1692 | db_open_repository(g.argv[2]); |
| 1693 | db_open_config(0); |
| 1694 | if( zTemplate ) db_attach(zTemplate, "settingSrc"); |
| 1695 | db_begin_transaction(); |
| 1696 | if( zDate==0 ) zDate = "now"; |
| 1697 | db_initial_setup(zTemplate, zDate, zDefaultUser, makeServerCodes); |
| 1698 | db_end_transaction(0); |
| 1699 | if( zTemplate ) db_detach("settingSrc"); |
| 1700 | if( makeServerCodes ){ |
| 1701 | fossil_print("project-id: %s\n", db_get("project-code", 0)); |
| 1702 |