Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Node.cc
r18 r20 11 11 namespace svnstat{ 12 12 13 bool Node::subversion_controlled(void)13 void Node::info(void) 14 14 { 15 15 std::string system_call = "svn info " + path_ + " > svnstat.tmp"; 16 16 int system_return = system(system_call.c_str()); 17 17 if (system_return){ 18 // Jari, throw exception. 18 19 std::cerr << "Error: svn info " << path_ << std::endl; 19 return false;20 exit(-1); 20 21 } 21 22 std::cerr << "Ok: svn info " << path_ << std::endl; … … 33 34 ss >> revision_; 34 35 } 35 36 return true;37 36 } 38 37 39 38 40 bool Node::subversion_controlled(void) const { 39 bool Node::subversion_controlled(void) const 40 { 41 41 std::string system_call = "svn proplist " + path_ + ">&/dev/null"; 42 42 return !system(system_call.c_str()); -
trunk/lib/Node.h
r18 r20 26 26 /// 27 27 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); 28 35 29 36 ///
Note: See TracChangeset
for help on using the changeset viewer.