Fossil

Check-in [a56e6bbfc6]
Login

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

Overview
Comment:When creating a new repository always generate an "initial empty check-in" for compatibility with Fossil 1.27 and earlier.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a56e6bbfc6c51b944fbb1b1173ceceafb7849738
User & Date: drh 2015-03-13 01:00:13.287
Context
2015-03-13
01:03
Remove from the homepage the assertion that "no work has ever been lost after having been committed to a Fossil repository" because people have in fact lost work due to the bug fixed by the previous check-in. check-in: 1f411eee4c user: drh tags: trunk
01:00
When creating a new repository always generate an "initial empty check-in" for compatibility with Fossil 1.27 and earlier. check-in: a56e6bbfc6 user: drh tags: trunk
2015-03-11
22:31
Fix harmless compiler warning. [http://www.sqlite.org/src/info/580dae4615353d73|580dae4615] check-in: 3e77213a73 user: jan.nijtmans tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
1689
1690
1691
1692
1693
1694
1695

1696
1697
1698
1699
1700
1701
1702
  }

  db_create_repository(g.argv[2]);
  db_open_repository(g.argv[2]);
  db_open_config(0);
  if( zTemplate ) db_attach(zTemplate, "settingSrc");
  db_begin_transaction();

  db_initial_setup(zTemplate, zDate, zDefaultUser, makeServerCodes);
  db_end_transaction(0);
  if( zTemplate ) db_detach("settingSrc");
  if( makeServerCodes ){
    fossil_print("project-id: %s\n", db_get("project-code", 0));
    fossil_print("server-id:  %s\n", db_get("server-code", 0));
  }







>







1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
  }

  db_create_repository(g.argv[2]);
  db_open_repository(g.argv[2]);
  db_open_config(0);
  if( zTemplate ) db_attach(zTemplate, "settingSrc");
  db_begin_transaction();
  if( zDate==0 ) zDate = "now";
  db_initial_setup(zTemplate, zDate, zDefaultUser, makeServerCodes);
  db_end_transaction(0);
  if( zTemplate ) db_detach("settingSrc");
  if( makeServerCodes ){
    fossil_print("project-id: %s\n", db_get("project-code", 0));
    fossil_print("server-id:  %s\n", db_get("server-code", 0));
  }