Changeset 13


Ignore:
Timestamp:
Dec 30, 2005, 2:53:50 PM (15 years ago)
Author:
Jari Häkkinen
Message:

First steps to purge non subversion entries from tree structure.

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r9 r13  
    7979  }
    8080
     81  bool Node::subversion_controlled(void) const {
     82    std::string system_call = "svn info " + path_;
     83    int system_return = system(system_call.c_str());
     84    if (system_return){
     85      std::cerr << "Error: svn info " << path_ << std::endl;     
     86      return false;
     87    }
     88    std::cerr << "Alright: svn info " << path_ << std::endl;     
     89
     90    return true;
     91  }
     92
    8193}} // end of namespace svnstat and namespace theplu
  • trunk/lib/Node.h

    r10 r13  
    5252    virtual void print(void)=0;
    5353
     54    ///
     55    /// Check if the node is under subversion control.
     56    ///
     57    /// @return True if subversion controlled, false otherwise.
     58    ///
     59    bool subversion_controlled(void) const;
     60
    5461  protected:
    5562    ///
Note: See TracChangeset for help on using the changeset viewer.