Fossil

Check-in [02f638a1]
Login

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

Overview
Comment:Fixed bug [2245a1e3d0]. rm command now properly checks return value.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | release
Files: files | file ages | folders
SHA1: 02f638a16fb83f3b4d1cfc3f9dc096e928f87725
User & Date: jeremy_c 2010-02-13 12:30:48
References
2010-02-16
04:54 New ticket [eff2cbe5] info prints two colons for user-home. artifact: 7329aa45 user: anonymous
Context
2010-02-15
21:01
Remove superfluous word, as per [6b8dcc1d67171f3e30]. check-in: 05b44d58 user: bch tags: trunk
2010-02-13
12:30
Fixed bug [2245a1e3d0]. rm command now properly checks return value. check-in: 02f638a1 user: jeremy_c tags: trunk, release
2010-02-10
13:13
Bug fix in the graph layout algorithm. check-in: 95ae79d5 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/add.c.

247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
    fossil_panic("no checkout to remove from");
  }
  db_begin_transaction();
  for(i=2; i<g.argc; i++){
    char *zName;

    zName = mprintf("%/", g.argv[i]);
    if( file_isdir(zName) ){
      del_directory_content(zName);
    } else {
      char *zPath;
      Blob pathname;
      file_tree_name(zName, &pathname, 1);
      zPath = blob_str(&pathname);
      if( !db_exists(







|







247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
    fossil_panic("no checkout to remove from");
  }
  db_begin_transaction();
  for(i=2; i<g.argc; i++){
    char *zName;

    zName = mprintf("%/", g.argv[i]);
    if( file_isdir(zName) == 1 ){
      del_directory_content(zName);
    } else {
      char *zPath;
      Blob pathname;
      file_tree_name(zName, &pathname, 1);
      zPath = blob_str(&pathname);
      if( !db_exists(