Changeset 109 for trunk


Ignore:
Timestamp:
Jun 28, 2006, 11:38:22 AM (15 years ago)
Author:
Peter Johansson
Message:

fixed bug when forcing remove of prev output and there exist no prev output, also removed debug code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svnstat.cc

    r104 r109  
    6363  if (option->force()){
    6464    std::string root_path(option->targetdir()+'/'+file_name(option->root()));
    65     rmdirhier(root_path);
     65    struct stat buf;
     66    if (!stat(root_path.c_str(),&buf))
     67      rmdirhier(root_path);
    6668  }
    6769  else {
     
    7678  }
    7779
    78   exit(-1);
    7980  if (!option->revisions()) {
    8081    if (option->verbose())
Note: See TracChangeset for help on using the changeset viewer.