Overview
SHA1 Hash: | 820a1a1a534f32bfff50d9eddd28b5aaf918e3a3 |
---|---|
Date: | 2007-09-23 18:55:36 |
User: | drh |
Comment: | Fix a C++-ism. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/checkin.c from [39235e7847] to [484fa282d6].
@@ -188,20 +188,19 @@ " WHERE x NOT IN ('manifest','manifest.uuid','_FOSSIL_')" " 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); }