Changes On Branch benoit
Not logged in

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

Changes In Branch benoit Excluding Merge-Ins

This is equivalent to a diff from 0e1ca296db to 2a4ab3b151

2010-07-30
00:16
Merge change by Benoit Mortgat into the trunk. check-in: e3fb8dc36c user: drh tags: trunk
2010-07-29
19:01
“delete” command, still can use “del” which is shorter and non ambiguous – ignore -wal and -shm files in repository root for adding, computing extras and closing repository, just in case Closed-Leaf check-in: 2a4ab3b151 user: benoit tags: benoit
2010-07-28
02:38
Add a link to http://chiselapp.com/ on the homepage. check-in: 0e1ca296db user: drh tags: trunk
2010-07-23
14:38
Fixed a link error in wiki check-in: 6c73d1b2cd user: BMorgat tags: trunk

Changes to src/add.c.

    37     37     const char *zPath;
    38     38   
    39     39     file_tree_name(zName, &pathname, 1);
    40     40     zPath = blob_str(&pathname);
    41     41     if( strcmp(zPath, "manifest")==0
    42     42      || strcmp(zPath, "_FOSSIL_")==0
    43     43      || strcmp(zPath, "_FOSSIL_-journal")==0
           44  +   || strcmp(zPath, "_FOSSIL_-wal")==0
           45  +   || strcmp(zPath, "_FOSSIL_-shm")==0
    44     46      || strcmp(zPath, ".fos")==0
    45     47      || strcmp(zPath, ".fos-journal")==0
           48  +   || strcmp(zPath, ".fos-wal")==0
           49  +   || strcmp(zPath, ".fos-shm")==0
    46     50      || strcmp(zPath, "manifest.uuid")==0
    47     51      || blob_compare(&pathname, pOmit)==0
    48     52     ){
    49     53       fossil_warning("cannot add %s", zPath);
    50     54     }else{
    51     55       if( !file_is_simple_pathname(zPath) ){
    52     56         fossil_fatal("filename contains illegal characters: %s", zPath);
................................................................................
   221    225     }
   222    226     closedir(d);
   223    227     blob_reset(&path);
   224    228   }
   225    229   
   226    230   /*
   227    231   ** COMMAND: rm
   228         -** COMMAND: del
          232  +** COMMAND: delete
   229    233   **
   230    234   ** Usage: %fossil rm FILE...
   231         -**    or: %fossil del FILE...
          235  +**    or: %fossil delete FILE...
   232    236   **
   233    237   ** Remove one or more files from the tree.
   234    238   **
   235    239   ** This command does not remove the files from disk.  It just marks the
   236    240   ** files as no longer being part of the project.  In other words, future
   237    241   ** changes to the named files will not be versioned.
   238    242   */
   239         -void del_cmd(void){
          243  +void delete_cmd(void){
   240    244     int i;
   241    245     int vid;
   242    246   
   243    247     db_must_be_within_tree();
   244    248     vid = db_lget_int("checkout", 0);
   245    249     if( vid==0 ){
   246    250       fossil_panic("no checkout to remove from");

Changes to src/checkin.c.

   269    269     if( zIgnoreFlag==0 ){
   270    270       zIgnoreFlag = db_get("ignore-glob", 0);
   271    271     }
   272    272     vfile_scan(0, &path, blob_size(&path), allFlag);
   273    273     db_prepare(&q, 
   274    274         "SELECT x FROM sfile"
   275    275         " WHERE x NOT IN ('manifest','manifest.uuid','_FOSSIL_',"
   276         -                         "'_FOSSIL_-journal','.fos','.fos-journal')"
          276  +                       "'_FOSSIL_-journal','.fos','.fos-journal',"
          277  +                       "'_FOSSIL_-wal','_FOSSIL_-shm','.fos-wal',"
          278  +                       "'.fos-shm')"
   277    279         "   AND NOT %s"
   278    280         " ORDER BY 1",
   279    281         glob_expr("x", zIgnoreFlag)
   280    282     );
   281    283     if( file_tree_name(g.zRepositoryName, &repo, 0) ){
   282    284       db_multi_exec("DELETE FROM sfile WHERE x=%B", &repo);
   283    285     }
................................................................................
   315    317     db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)");
   316    318     n = strlen(g.zLocalRoot);
   317    319     blob_init(&path, g.zLocalRoot, n-1);
   318    320     vfile_scan(0, &path, blob_size(&path), dotfilesFlag);
   319    321     db_prepare(&q, 
   320    322         "SELECT %Q || x FROM sfile"
   321    323         " WHERE x NOT IN ('manifest','manifest.uuid','_FOSSIL_',"
   322         -                       "'_FOSSIL_-journal','.fos','.fos-journal')"
          324  +                       "'_FOSSIL_-journal','.fos','.fos-journal',"
          325  +                       "'_FOSSIL_-wal','_FOSSIL_-shm','.fos-wal',"
          326  +                       "'.fos-shm')"
   323    327         " ORDER BY 1", g.zLocalRoot);
   324    328     if( file_tree_name(g.zRepositoryName, &repo, 0) ){
   325    329       db_multi_exec("DELETE FROM sfile WHERE x=%B", &repo);
   326    330     }
   327    331     while( db_step(&q)==SQLITE_ROW ){
   328    332       if( allFlag ){
   329    333         unlink(db_column_text(&q, 0));

Changes to src/checkout.c.

   230    230   /*
   231    231   ** Unlink the local database file
   232    232   */
   233    233   void unlink_local_database(void){
   234    234     static const char *azFile[] = {
   235    235        "%s_FOSSIL_",
   236    236        "%s_FOSSIL_-journal",
          237  +     "%s_FOSSIL_-wal",
          238  +     "%s_FOSSIL_-shm",
   237    239        "%s.fos",
   238    240        "%s.fos-journal",
          241  +     "%s.fos-wal",
          242  +     "%s.fos-shm",
   239    243     };
   240    244     int i;
   241    245     for(i=0; i<sizeof(azFile)/sizeof(azFile[0]); i++){
   242    246       char *z = mprintf(azFile[i], g.zLocalRoot);
   243    247       unlink(z);
   244    248       free(z);
   245    249     }