Changeset 657


Ignore:
Timestamp:
Jun 10, 2008, 2:27:40 AM (11 years ago)
Author:
Peter Johansson
Message:

Fix some problem with detection of copyright lines - fixes #275 and #328

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/AddStats.cc

    r647 r657  
    5757  void AddStats::do_parse(const std::string& path)
    5858  {
    59     LineTypeParser parser(path);
    6059    SVNlog log(path);
    6160    typedef std::set<svn_revnum_t> RevSet;
     
    6665    for (RevSet::iterator rev_iter=revs.begin();rev_iter!=revs.end();++rev_iter){
    6766      SVNblame svn_blame(path, *rev_iter);
     67      LineTypeParser parser(path);
    6868      while (svn_blame.valid()) {
     69        LineTypeParser::line_type lt = parser.parse(svn_blame.line());
    6970        if (*rev_iter==svn_blame.revision())
    70           add(svn_blame.author(), *rev_iter, parser.parse(svn_blame.line()));
     71          add(svn_blame.author(), *rev_iter, lt);
    7172        // I dont trust blame and log behave consistent (stop-on-copy).
    7273        revs.insert(svn_blame.revision());
  • trunk/lib/BlameStats.cc

    r656 r657  
    7878  void BlameStats::do_parse(const std::string& path)
    7979  {
    80     LineTypeParser parser(path);
    8180    SVNlog log(path);
    8281    typedef std::set<svn_revnum_t> RevSet;
     
    8786    for (RevSet::iterator rev_iter=revs.begin();rev_iter!=revs.end();++rev_iter){
    8887      SVNblame svn_blame(path, *rev_iter);
     88      LineTypeParser parser(path);
    8989      while (svn_blame.valid()) {
    9090        add(svn_blame.author(), *rev_iter, parser.parse(svn_blame.line()));
Note: See TracChangeset for help on using the changeset viewer.