Fossil

Check-in [ceeb1c331b]
Login

Check-in [ceeb1c331b]

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

Overview
Comment:In the "fossil server --repolist" command, to not accept ".fossil" as a valid fossil repository. Require at least one character before the ".".
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ceeb1c331bdb7967aa7dcadcf9580fda42017e0c
User & Date: drh 2015-06-26 17:48:21.262
Context
2015-06-26
19:40
Remove used of --disable-lineedit in Dockerfile, as it no longer exists. Noted by Remco Schoen. Thanks! ... (check-in: 6ec714e519 user: jan.nijtmans tags: trunk)
18:48
Merge trunk. ... (check-in: f3daf39355 user: andygoth tags: undo-clean)
17:48
In the "fossil server --repolist" command, to not accept ".fossil" as a valid fossil repository. Require at least one character before the ".". ... (check-in: ceeb1c331b user: drh tags: trunk)
2015-06-25
01:45
Minor spelling corrections to comment. ... (check-in: c048aac095 user: andybradford tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469

  assert( g.db==0 );
  blob_init(&base, g.zRepositoryName, -1);
  sqlite3_open(":memory:", &g.db);
  db_multi_exec("CREATE TABLE sfile(x TEXT);");
  db_multi_exec("CREATE TABLE vfile(pathname);");
  vfile_scan(&base, blob_size(&base), 0, 0, 0);
  db_multi_exec("DELETE FROM sfile WHERE x NOT GLOB '*.fossil'");
  n = db_int(0, "SELECT count(*) FROM sfile");
  if( n>0 ){
    Stmt q;
    @ <html>
    @ <head>
    @ <title>Repository List</title>
    @ </head>







|







1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469

  assert( g.db==0 );
  blob_init(&base, g.zRepositoryName, -1);
  sqlite3_open(":memory:", &g.db);
  db_multi_exec("CREATE TABLE sfile(x TEXT);");
  db_multi_exec("CREATE TABLE vfile(pathname);");
  vfile_scan(&base, blob_size(&base), 0, 0, 0);
  db_multi_exec("DELETE FROM sfile WHERE x NOT GLOB '*[^/.].fossil'");
  n = db_int(0, "SELECT count(*) FROM sfile");
  if( n>0 ){
    Stmt q;
    @ <html>
    @ <head>
    @ <title>Repository List</title>
    @ </head>