Fossil

Check-in [356e877cea]
Login

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

Overview
Comment:Fix the "addremove" command so that it honors the "ignore-glob" setting. Ticket [9bd235c69af99b3a6a]
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 356e877ceaf7211509644cfda682f65ae2a0d51b
User & Date: drh 2011-01-13 19:55:28.947
References
2011-06-01
19:56 New ticket [3233c3dad9] SQLITE_ERROR: no such function: now. ... (artifact: 4d487946dd user: anonymous)
2011-02-10
05:05 New ticket [c524bb591e] default ticket tracker formats 'title' inconsistently if it contains symbols like <. ... (artifact: 415012b0bc user: anonymous)
2011-02-07
08:26 New ticket [c1cb47f0f9] Can't login. Server is Ubuntu 10.10. ... (artifact: eb969ae684 user: anonymous)
2011-02-04
21:55 Ticket [e0352240ad] Support for importing vendor source status still Open with 2 other changes ... (artifact: cfa00cb2d1 user: anonymous)
Context
2011-01-13
20:23
Updates to the self-hosting page. ... (check-in: 4ab7251fcd user: drh tags: trunk)
19:55
Fix the "addremove" command so that it honors the "ignore-glob" setting. Ticket [9bd235c69af99b3a6a] ... (check-in: 356e877cea user: drh tags: trunk)
19:45
Declare all variables before any code, in the register_page() function. Ticket [59a156204ae6419d] ... (check-in: 372c7257da user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/add.c.
414
415
416
417
418
419
420

421
422
423
424
425
426
427
428
429
430
431
  int n;
  Stmt q;
  int vid;
  Blob repo;
  int nAdd = 0;
  int nDelete = 0;


  if( zIgnoreFlag==0 ){
    zIgnoreFlag = db_get("ignore-glob", 0);
  }
  db_must_be_within_tree();
  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)");
  n = strlen(g.zLocalRoot);







>



<







414
415
416
417
418
419
420
421
422
423
424

425
426
427
428
429
430
431
  int n;
  Stmt q;
  int vid;
  Blob repo;
  int nAdd = 0;
  int nDelete = 0;

  db_must_be_within_tree();
  if( zIgnoreFlag==0 ){
    zIgnoreFlag = db_get("ignore-glob", 0);
  }

  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)");
  n = strlen(g.zLocalRoot);