Changeset 301


Ignore:
Timestamp:
May 10, 2007, 8:46:36 PM (14 years ago)
Author:
Peter Johansson
Message:

fixes #187 and another bug in comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Trac.cc

    r300 r301  
    125125      if (diff(first, str.end()))
    126126        continue;
    127 // Jari removed these line, search for BUG HERE below for bad code
    128 //      if (milestone(first, str.end()))
    129 //        continue;
     127      if (milestone(first, str.end()))
     128        continue;
    130129      if (source(first, str.end()))
    131130        continue;
     
    167166
    168167    const Configuration& conf = Configuration::instance();
    169     hs_.stream() << anchor(conf.trac_root()+"ticket/"+ticket,"#"+ticket);
     168    hs_.stream() << anchor(conf.trac_root()+"ticket/"+ticket+
     169                           "#comment:"+comment,
     170                           std::string(first_orig, first));
    170171    return true;
    171172
     
    186187    }
    187188
    188     // BUG HERE, this is not properly set
    189     const std::string::const_iterator milestone_begin;
     189    const std::string::const_iterator milestone_begin(first);
    190190
    191191    // find the last alphanumerical char before next space (or last)
Note: See TracChangeset for help on using the changeset viewer.