Differences From Artifact [d840ca6b8f]:
- File src/update.c — part of check-in [d795eb0b60] at 2015-07-15 19:38:38 on branch trunk — For the update command, skip calls into the 'undo' subsystem when the -n (dry-run) flag is used. (user: mistachkin size: 28173)
To Artifact [2effb8364b]:
- File src/update.c — part of check-in [a50be7b87a] at 2015-07-15 20:15:22 on branch trunk — Further enhancements to the 'undo' subsystem integration. (user: mistachkin size: 28198) [more...]
| ︙ | |||
736 737 738 739 740 741 742 743 744 745 746 747 748 749 | 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 | + |
undo_begin();
db_multi_exec("CREATE TEMP TABLE torevert(name UNIQUE);");
if( g.argc>2 ){
for(i=2; i<g.argc; i++){
Blob fname;
zFile = mprintf("%/", g.argv[i]);
blob_zero(&fname);
file_tree_name(zFile, &fname, 0, 1);
db_multi_exec(
"REPLACE INTO torevert VALUES(%B);"
"INSERT OR IGNORE INTO torevert"
" SELECT pathname"
" FROM vfile"
" WHERE origname=%B;",
|
| ︙ |