Fossil

Check-in [cb14ab18]
Login

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

Overview
Comment:typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | nop
Files: files | file ages | folders
SHA1: cb14ab18092fa875f58ed287cbe96338ade0f42f
User & Date: bharder 2010-09-22 03:03:16
Context
2010-09-22
05:42
schema change to support "nop". Repos will need to be rebuilt to use this functionality. Closed-Leaf check-in: efc9e1c3 user: bharder tags: nop
03:03
typo check-in: cb14ab18 user: bharder tags: nop
02:58
start of "nop" no-operation command check-in: 46ea0373 user: bharder tags: nop
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/add.c.

266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
      Blob pathname;
      file_tree_name(zName, &pathname, 1);
      zPath = blob_str(&pathname);
      if( !db_exists(
               "SELECT 1 FROM vfile WHERE pathname=%Q AND NOT deleted", zPath) ){
        fossil_fatal("not in the repository: %s", zName);
      }else{
        db_multi_exec("UPDATE vfile SET deleted=0, changed=0 WHERE pathname=%Q", zPath);
        printf("NOP        %s\n", zPath);
      }
      blob_reset(&pathname);
    }
    free(zName);
  }
  db_end_transaction(0);







|







266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
      Blob pathname;
      file_tree_name(zName, &pathname, 1);
      zPath = blob_str(&pathname);
      if( !db_exists(
               "SELECT 1 FROM vfile WHERE pathname=%Q AND NOT deleted", zPath) ){
        fossil_fatal("not in the repository: %s", zName);
      }else{
        db_multi_exec("UPDATE vfile SET deleted=0, chnged=0 WHERE pathname=%Q", zPath);
        printf("NOP        %s\n", zPath);
      }
      blob_reset(&pathname);
    }
    free(zName);
  }
  db_end_transaction(0);