Fossil

Check-in [87ac9af8c6]
Login

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

Overview
Comment:Only create index when "case-sensitive" is off.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 87ac9af8c672c14b9d5483cc3cf71470d09fb127
User & Date: jan.nijtmans 2013-04-17 10:15:25.296
Context
2013-04-17
14:00
Document "fossil tag --type TYPE" and "fossil timeline --count N --type TYPE" ... (check-in: f8e526c212 user: jan.nijtmans tags: trunk)
10:15
Only create index when "case-sensitive" is off. ... (check-in: 87ac9af8c6 user: jan.nijtmans tags: trunk)
09:30
Fix [85017e9273]: Under Windows, renamed file keeps getting "ADDED". ... (check-in: e8e444eceb user: jan.nijtmans tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/add.c.
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
  }
  vid = db_lget_int("checkout",0);
  if( vid==0 ){
    fossil_panic("no checkout to add to");
  }
  db_begin_transaction();
  db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)");
  if( caseSensitive ){
    db_multi_exec(
       "CREATE INDEX IF NOT EXISTS vfile_pathname "
       "  ON vfile(pathname COLLATE nocase)"
    );
  }
  pIgnore = glob_create(zIgnoreFlag);
  nRoot = strlen(g.zLocalRoot);







|







266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
  }
  vid = db_lget_int("checkout",0);
  if( vid==0 ){
    fossil_panic("no checkout to add to");
  }
  db_begin_transaction();
  db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)");
  if( !caseSensitive ){
    db_multi_exec(
       "CREATE INDEX IF NOT EXISTS vfile_pathname "
       "  ON vfile(pathname COLLATE nocase)"
    );
  }
  pIgnore = glob_create(zIgnoreFlag);
  nRoot = strlen(g.zLocalRoot);