Fossil

Changes On Branch clobber_fixer
Login

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

Changes In Branch clobber_fixer Excluding Merge-Ins

This is equivalent to a diff from 5b916850 to 8ad90666

2015-01-30
01:16
merge [clobber_fixer] to keep "clone" and "new|init" from overwriting an existing file when setting up a new repository ... (check-in: 89c17a86 user: bch tags: trunk)
01:14
merge [trunk] ... (Closed-Leaf check-in: 8ad90666 user: bch tags: clobber_fixer)
01:07
Add the -D__EXTENSIONS__ compile-time option on Solaris, so that it can find its IPv6 headers. ... (check-in: 5b916850 user: drh tags: trunk)
2015-01-29
22:51
cleanup ws, unused variable ... (check-in: 7670e65f user: bch tags: clobber_fixer)
09:14
Changelog additions, and a single "const" addition ... (check-in: 9586ac14 user: jan.nijtmans tags: trunk)

Changes to src/clone.c.

136
137
138
139
140
141
142
143

144
145
146
147
148
149
150
136
137
138
139
140
141
142

143
144
145
146
147
148
149
150







-
+







  /* We should be done with options.. */
  verify_all_options();

  if( g.argc < 4 ){
    usage("?OPTIONS? FILE-OR-URL NEW-REPOSITORY");
  }
  db_open_config(0);
  if( file_size(g.argv[3])>0 ){
  if( -1 != file_size(g.argv[3]) ){
    fossil_fatal("file already exists: %s", g.argv[3]);
  }

  url_parse(g.argv[2], urlFlags);
  if( zDefaultUser==0 && g.url.user!=0 ) zDefaultUser = g.url.user;
  if( g.url.isFile ){
    file_copy(g.url.name, g.argv[3]);

Changes to src/db.c.

1680
1681
1682
1683
1684
1685
1686





1687
1688
1689
1690
1691
1692
1693
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698







+
+
+
+
+







  find_option("empty", 0, 0); /* deprecated */
  /* We should be done with options.. */
  verify_all_options();

  if( g.argc!=3 ){
    usage("REPOSITORY-NAME");
  }
 
  if( -1 != file_size(g.argv[2]) ){
    fossil_fatal("file already exists: %s", g.argv[2]);
  }

  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);