Changeset 20 for trunk/lib


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

Fixed subversion_controlled/info mixup..

Location:
trunk/lib
Files:
2 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());
  • trunk/lib/Node.h

    r18 r20  
    2626    ///
    2727    virtual inline ~Node(void) {};
     28
     29    ///
     30    /// Extracts information from 'svn info <node>'
     31    ///
     32    /// @note <node> must be in subversion control.
     33    ///
     34    void info(void);
    2835
    2936    ///
Note: See TracChangeset for help on using the changeset viewer.