Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Trac.cc
r287 r288 39 39 std::string::const_iterator first(str.begin()); 40 40 while (first!=str.end()) { 41 std::string::const_iterator begin(first); 41 if (log(first, str.end())) 42 continue; 42 43 if (ticket(first, str.end())) 43 44 continue; … … 70 71 } 71 72 73 74 bool Trac::log(std::string::const_iterator& first, 75 const std::string::const_iterator& last) 76 { 77 if (first==last) 78 return false; 79 80 const std::string::const_iterator first_orig(first); 81 if (*first != '#') 82 return false; 83 ++first; 84 std::string ticket; 85 for (;first!=last && isdigit(*first); ++first) 86 ticket.append(1,*first); 87 88 if (ticket.empty()) 89 return false; 90 91 Configuration* conf = Configuration::instance(); 92 hs_.stream() << anchor(conf->trac_ticket()+ticket,"#"+ticket); 93 return true; 94 } 95 72 96 }} // end of namespace svndigest and namespace theplu -
trunk/lib/Trac.h
r286 r288 50 50 51 51 private: 52 bool changeset(std::string::const_iterator& first, 53 const std::string::const_iterator& last); 54 55 bool comment(std::string::const_iterator& first, 56 const std::string::const_iterator& last); 57 58 bool log(std::string::const_iterator& first, 59 const std::string::const_iterator& last); 60 61 bool milestone(std::string::const_iterator& first, 62 const std::string::const_iterator& last); 63 64 bool source(std::string::const_iterator& first, 65 const std::string::const_iterator& last); 66 52 67 /// if range (first, last) starts with /#[:digit:]*/ a ticket link 53 68 /// is written;
Note: See TracChangeset
for help on using the changeset viewer.