Differences From:
File
src/checkin.c
part of check-in
[8372cc0b81]
- Socket operations now functional in Win32 port. Added quotes around the filename portion of the command to edit thus working of windows in paths where the temp directory contains spaces. Added -all flag to clean command. If not specified each file is prompted for before removing.
by
jnc on
2007-09-22 18:34:49.
Also file
src/checkin.c
part of check-in
[3c5482959c]
- Merge in the w32 changes.
by
drh on
2007-09-22 19:43:55.
[view]
To:
File
src/checkin.c
part of check-in
[820a1a1a53]
- Fix a C++-ism.
by
drh on
2007-09-23 18:55:36.
[view]
@@ -189,18 +189,17 @@
" ORDER BY 1", g.zLocalRoot);
while( db_step(&q)==SQLITE_ROW ){
if( allFlag ){
unlink(db_column_text(&q, 0));
- continue;
- }
-
- Blob ans;
- char *prompt = mprintf("remove unmanaged file \"%s\" [y/N]? ",
- db_column_text(&q, 0));
- blob_zero(&ans);
- prompt_user(prompt, &ans);
- if( blob_str(&ans)[0]=='y' ){
- unlink(db_column_text(&q, 0));
+ }else{
+ Blob ans;
+ char *prompt = mprintf("remove unmanaged file \"%s\" [y/N]? ",
+ db_column_text(&q, 0));
+ blob_zero(&ans);
+ prompt_user(prompt, &ans);
+ if( blob_str(&ans)[0]=='y' ){
+ unlink(db_column_text(&q, 0));
+ }
}
}
db_finalize(&q);
}