Changeset 20 for trunk/lib/Node.cc


Ignore:
Timestamp:
Dec 30, 2005, 11:02:50 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Fixed subversion_controlled/info mixup..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r18 r20  
    1111namespace svnstat{
    1212
    13   bool Node::subversion_controlled(void)
     13  void Node::info(void)
    1414  {
    1515    std::string system_call = "svn info " + path_ + " > svnstat.tmp";
    1616    int system_return = system(system_call.c_str());
    1717    if (system_return){
     18      // Jari, throw exception.
    1819      std::cerr << "Error: svn info " << path_ << std::endl;     
    19       return false;
     20      exit(-1);
    2021    }
    2122    std::cerr << "Ok: svn info " << path_ << std::endl;     
     
    3334        ss >> revision_;
    3435    }
    35    
    36     return true;
    3736  }
    3837
    3938
    40   bool Node::subversion_controlled(void) const {
     39  bool Node::subversion_controlled(void) const
     40  {
    4141    std::string system_call = "svn proplist " + path_ + ">&/dev/null";
    4242    return !system(system_call.c_str());
Note: See TracChangeset for help on using the changeset viewer.