Changeset 289 for trunk/bin


Ignore:
Timestamp:
May 8, 2007, 2:48:07 PM (14 years ago)
Author:
Peter Johansson
Message:

fixed trac link problem. fixes #178 and refs #180. Also changed format of config file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigest.cc

    r285 r289  
    6262
    6363  // Reading configuration file
    64   Configuration* config = Configuration::instance();
     64  Configuration& config = Configuration::instance();
    6565  if (node_exist(option->config_file())) {
    6666    std::ifstream is(option->config_file().c_str());
     
    7171      exit(-1);
    7272    }
    73     config->load(is);
     73    config.load(is);
    7474    is.close();
    7575  }
    7676  else
    77     config->load();
    78   assert(config);
     77    config.load();
    7978 
    8079  // write configuration
    8180  if (option->generate_config()) {
    82     std::cout << *config;
     81    std::cout << config;
    8382    exit(0);
    8483  }
     
    9291  }
    9392  catch (SVNException e) {
    94     std::cerr << "\nsvndigest: " << e.what() << "\nsvndigest: " << option->root()
     93    std::cerr << "\nsvndigest: " << e.what() << "\nsvndigest: "
     94              << option->root()
    9595              << " is not under subversion control\n" << std::endl;
    9696    exit(-1);
     
    180180      if (option->verbose())
    181181        std::cout << "Updating copyright statements" << std::endl;
    182       std::map<std::string, std::string> alias(config->copyright_alias());
     182      std::map<std::string, std::string> alias(config.copyright_alias());
    183183      tree.print_copyright(alias);
    184184    }
Note: See TracChangeset for help on using the changeset viewer.