Fossil

Check-in [c3211392]
Login

Check-in [c3211392]

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

Overview
Comment:Fix /tree view in combination with configure --disable-internal-sqlite (Reported by Andy Bradford)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | timeline-utc
Files: files | file ages | folders
SHA1: c3211392dab3c588cefd900d1faba94b45b25fa7
User & Date: jan.nijtmans 2014-01-02 15:30:16
Context
2014-01-02
16:50
Fix /tree page and "timeline-utc" setting in combination with --disable-internal-sqlite configuration ... (check-in: bd115112 user: jan.nijtmans tags: trunk)
15:30
Fix /tree view in combination with configure --disable-internal-sqlite (Reported by Andy Bradford) ... (Closed-Leaf check-in: c3211392 user: jan.nijtmans tags: timeline-utc)
15:17
merge trunk ... (check-in: d5fd6cc1 user: jan.nijtmans tags: timeline-utc)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/browse.c.

505
506
507
508
509
510
511

512
513
514
515
516
517
518
519
    Stmt ins, q;
    ManifestFile *pFile;

    db_multi_exec(
        "CREATE TEMP TABLE filelist("
        "   x TEXT PRIMARY KEY COLLATE nocase,"
        "   uuid TEXT"

        ") WITHOUT ROWID;"
    );
    db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
    manifest_file_rewind(pM);
    while( (pFile = manifest_file_next(pM,0))!=0 ){
      if( nD>0
       && (fossil_strncmp(pFile->zName, zD, nD-1)!=0
           || pFile->zName[nD-1]!='/')







>
|







505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
    Stmt ins, q;
    ManifestFile *pFile;

    db_multi_exec(
        "CREATE TEMP TABLE filelist("
        "   x TEXT PRIMARY KEY COLLATE nocase,"
        "   uuid TEXT"
        ")%s;",
        sqlite3_libversion_number()>=3008002 ? " WITHOUT ROWID" : ""
    );
    db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
    manifest_file_rewind(pM);
    while( (pFile = manifest_file_next(pM,0))!=0 ){
      if( nD>0
       && (fossil_strncmp(pFile->zName, zD, nD-1)!=0
           || pFile->zName[nD-1]!='/')