Fossil

Check-in [97e5ff20]
Login

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

Overview
Comment:Completely forget about files that were added then removed without ever been committed.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental
Files: files | file ages | folders
SHA1: 97e5ff20d73f812fe5b5d6f9c6000864f359e383
User & Date: drh 2011-04-15 00:59:32
Original Comment: Completely forget about files that were added then removed without ever been committed.
Context
2011-04-15
11:57
Merge the refactored "add", "del", and "addremove" commands into trunk. check-in: 8ae91736 user: drh tags: trunk
00:59
Completely forget about files that were added then removed without ever been committed. Closed-Leaf check-in: 97e5ff20 user: drh tags: experimental
2011-04-14
22:41
Refactoring the "add", "del", and "addremove" commands. check-in: 2b951025 user: drh tags: experimental
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/add.c.

282
283
284
285
286
287
288
289

290
291
292
293
294
295
296
  
  db_prepare(&loop, "SELECT x FROM sfile");
  while( db_step(&loop)==SQLITE_ROW ){
    printf("DELETED %s\n", db_column_text(&loop, 0));
  }
  db_finalize(&loop);
  db_multi_exec(
    "UPDATE vfile SET deleted=1 WHERE pathname IN sfile"

  );
  db_end_transaction(0);
}

/*
** COMMAND: addremove
**







|
>







282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
  
  db_prepare(&loop, "SELECT x FROM sfile");
  while( db_step(&loop)==SQLITE_ROW ){
    printf("DELETED %s\n", db_column_text(&loop, 0));
  }
  db_finalize(&loop);
  db_multi_exec(
    "UPDATE vfile SET deleted=1 WHERE pathname IN sfile;"
    "DELETE FROM vfile WHERE rid=0 AND deleted;"
  );
  db_end_transaction(0);
}

/*
** COMMAND: addremove
**