Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Directory.cc
r14 r16 60 60 const Stats& Directory::parse(void) 61 61 { 62 // calling svn info;63 info();64 62 stats_.reset(); 65 63 -
trunk/lib/File.cc
r15 r16 24 24 const Stats& File::parse(void) 25 25 { 26 // calling svn info27 info();28 26 stats_.reset(); 29 27 if (binary_){ -
trunk/lib/Node.cc
r15 r16 11 11 namespace svnstat{ 12 12 13 bool Node:: info()13 bool Node::subversion_controlled(void) 14 14 { 15 15 std::string system_call = "svn info " + path_ + " > svnstat.tmp"; … … 19 19 return false; 20 20 } 21 std::cerr << "Ok: svn info " << path_ << std::endl; 21 22 std::ifstream is("svnstat.tmp"); 22 23 std::string line; … … 36 37 } 37 38 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 50 40 }} // end of namespace svnstat and namespace theplu -
trunk/lib/Node.h
r15 r16 20 20 /// @brief Constructor 21 21 /// 22 inline Node(const std::string& path) : path_(path) { info();}22 inline Node(const std::string& path) : path_(path) {} 23 23 24 24 /// … … 38 38 39 39 /// 40 /// Check if the node is under subversion control. 40 /// Check if the node is under subversion control. If node 41 /// is under subversion control, information about node is 42 /// parsed from the 'svn info' output. 43 /// 41 44 /// 42 45 /// @return True if subversion controlled, false otherwise. 43 46 /// 44 bool subversion_controlled(void) const;47 bool subversion_controlled(void); 45 48 46 49 protected: 47 ///48 /// @brief performing svn info and parsing the info.49 ///50 /// @return true if parsing succesful51 ///52 bool info(void);53 54 50 std::string author_; 55 51 std::string path_;
Note: See TracChangeset
for help on using the changeset viewer.