Changeset 16 for trunk/lib/Node.cc


Ignore:
Timestamp:
Dec 30, 2005, 6:30:51 PM (16 years ago)
Author:
Peter Johansson
Message:

merged Node::info() and Node::subversion_controlled()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r15 r16  
    1111namespace svnstat{
    1212
    13   bool Node::info()
     13  bool Node::subversion_controlled(void)
    1414  {
    1515    std::string system_call = "svn info " + path_ + " > svnstat.tmp";
     
    1919      return false;
    2020    }
     21    std::cerr << "Ok: svn info " << path_ << std::endl;     
    2122    std::ifstream is("svnstat.tmp");
    2223    std::string line;
     
    3637  }
    3738
    38   bool Node::subversion_controlled(void) const {
    39     std::string system_call = "svn info " + path_;
    40     int system_return = system(system_call.c_str());
    41     if (system_return){
    42       std::cerr << "Error: svn info " << path_ << std::endl;     
    43       return false;
    44     }
    45     std::cerr << "Alright: svn info " << path_ << std::endl;     
    46 
    47     return true;
    48   }
    49 
     39 
    5040}} // end of namespace svnstat and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.