Fossil

Check-in [5308e468]
Login

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

Overview
Comment:Fix the "clean" command to use --force instead of --all. Ticket [c3d668ad52]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5308e4681530d77a3d023183f3b90ed1a0eebf75
User & Date: drh 2009-10-11 19:52:21
References
2009-10-16
09:40 Ticket [b7fc3f05] fossil clean --force doesn't empty remove directories status still Open with 1 other change artifact: 3429dabd user: anonymous
2009-10-13
06:21 New ticket [dbf79085] Issues with logging-in. artifact: 0c521881 user: altufaltu
2009-10-11
19:53 Fixed ticket [c3d668ad]: "clean" command has an option --all, but documentation says it's --force plus 3 other changes artifact: f53de0ce user: drh
Context
2009-10-13
16:25
Update to the latest version of SQLite. check-in: 076f7adf user: drh tags: trunk
2009-10-11
21:29
Remove extra whitespace before file names in file browser. Ticket [28d861eb57]. check-in: f871a3b5 user: dmitry tags: trunk
19:52
Fix the "clean" command to use --force instead of --all. Ticket [c3d668ad52] check-in: 5308e468 user: drh tags: trunk
19:47
Fix to the "font-family" CSS line in the default CSS. Ticket [aba72eaa589]. check-in: adb155b6 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkin.c.

204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
**
** Delete all "extra" files in the source tree.  "Extra" files are
** files that are not officially part of the checkout.  See also
** the "extra" command. This operation cannot be undone. 
**
** You will be prompted before removing each file. If you are
** sure you wish to remove all "extra" files you can specify the
** optional --force flag and no prmpts will be issued.
**
** Files and subdirectories whose names begin with "." are
** normally ignored.  They are included if the "--dotfiles" option
** is used.
*/
void clean_cmd(void){
  int allFlag;
  int dotfilesFlag;
  Blob path, repo;
  Stmt q;
  int n;
  allFlag = find_option("all","a",0)!=0;
  dotfilesFlag = find_option("dotfiles",0,0)!=0;
  db_must_be_within_tree();
  db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)");
  n = strlen(g.zLocalRoot);
  blob_init(&path, g.zLocalRoot, n-1);
  vfile_scan(0, &path, blob_size(&path), dotfilesFlag);
  db_prepare(&q, 







|











|







204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
**
** Delete all "extra" files in the source tree.  "Extra" files are
** files that are not officially part of the checkout.  See also
** the "extra" command. This operation cannot be undone. 
**
** You will be prompted before removing each file. If you are
** sure you wish to remove all "extra" files you can specify the
** optional --force flag and no prompts will be issued.
**
** Files and subdirectories whose names begin with "." are
** normally ignored.  They are included if the "--dotfiles" option
** is used.
*/
void clean_cmd(void){
  int allFlag;
  int dotfilesFlag;
  Blob path, repo;
  Stmt q;
  int n;
  allFlag = find_option("force","f",0)!=0;
  dotfilesFlag = find_option("dotfiles",0,0)!=0;
  db_must_be_within_tree();
  db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)");
  n = strlen(g.zLocalRoot);
  blob_init(&path, g.zLocalRoot, n-1);
  vfile_scan(0, &path, blob_size(&path), dotfilesFlag);
  db_prepare(&q,