Changeset 1288 for trunk/lib/File.cc


Ignore:
Timestamp:
Nov 9, 2010, 4:56:33 AM (11 years ago)
Author:
Peter Johansson
Message:

avoid creating link to empty page when configured for no blame output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r1287 r1288  
    222222  void File::print_core(const bool verbose) const
    223223  {
     224    if (!Configuration::instance().output_blame_information())
     225      return;
    224226    mkdir_p(directory_name(blame_output_file_name()));
    225227    std::ofstream os(blame_output_file_name().c_str());
    226228    assert(os.good());
    227229    print_html_start(os, "svndigest", level_+1);
    228     if (Configuration::instance().output_blame_information())
    229       print_blame(os);
     230    print_blame(os);
    230231    print_footer(os);
    231232    os.close();
     
    265266    print_author_summary(os, stats_[stats_type], line_type, log);
    266267    os << "\n";
    267     os << "<h3>"
    268        << anchor(blame_output_file_name(),
    269                 "Blame Information", level_+3)
    270       << "</h3>\n";
     268    if (Configuration::instance().output_blame_information())
     269      os << "<h3>"
     270         << anchor(blame_output_file_name(), "Blame Information", level_+3)
     271        << "</h3>\n";
    271272
    272273    print_footer(os);
Note: See TracChangeset for help on using the changeset viewer.