Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | The 'new' and 'init' commands again create an initial checkin unless the (new) --empty flag is given or (as before) --date-override is used. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
3b66804d3f10f9ba23d7f83170b77306 |
| User & Date: | stephan 2014-05-31 19:37:36.640 |
Context
|
2014-05-31
| ||
| 22:22 | Documented the new -empty flag. check-in: 2a17ab66b2 user: stephan tags: trunk | |
| 19:37 | The 'new' and 'init' commands again create an initial checkin unless the (new) --empty flag is given or (as before) --date-override is used. check-in: 3b66804d3f user: stephan tags: trunk | |
| 16:37 | Backout [636982a564], which incorrectly calculates aggregate disk checksums when selectively committing files for the initial checkin. check-in: 1a0179abd7 user: joel tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 |
** See also: clone
*/
void create_repository_cmd(void){
char *zPassword;
const char *zTemplate; /* Repository from which to copy settings */
const char *zDate; /* Date of the initial check-in */
const char *zDefaultUser; /* Optional name of the default user */
zTemplate = find_option("template",0,1);
zDate = find_option("date-override",0,1);
zDefaultUser = find_option("admin-user","A",1);
if( g.argc!=3 ){
usage("REPOSITORY-NAME");
}
db_create_repository(g.argv[2]);
db_open_repository(g.argv[2]);
db_open_config(0);
if( zTemplate ) db_attach(zTemplate, "settingSrc");
| > > > > > | 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 |
** See also: clone
*/
void create_repository_cmd(void){
char *zPassword;
const char *zTemplate; /* Repository from which to copy settings */
const char *zDate; /* Date of the initial check-in */
const char *zDefaultUser; /* Optional name of the default user */
char const *zCreateEmpty; /* --empty flag set? */
zTemplate = find_option("template",0,1);
zDate = find_option("date-override",0,1);
zDefaultUser = find_option("admin-user","A",1);
zCreateEmpty = find_option("empty", 0, 0);
if(!zDate && !zCreateEmpty){
zDate = "now";
}
if( g.argc!=3 ){
usage("REPOSITORY-NAME");
}
db_create_repository(g.argv[2]);
db_open_repository(g.argv[2]);
db_open_config(0);
if( zTemplate ) db_attach(zTemplate, "settingSrc");
|
| ︙ | ︙ |