Changeset 446 for trunk/lib/File.cc


Ignore:
Timestamp:
Aug 16, 2007, 5:57:18 PM (14 years ago)
Author:
Peter Johansson
Message:

fixes #243

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r445 r446  
    2525
    2626#include "Alias.h"
     27#include "Configuration.h"
    2728#include "Date.h"
    2829#include "GnuplotFE.h"
     
    8081        year_authors[timeinfo->tm_year].insert(a);
    8182        std::cerr << "svndigest: warning: no copyright alias found for `"
    82                   << *author << "`\n";
     83                  << *author << "'\n";
    8384        // insert alias to avoid multiple warnings.
    8485        alias.insert(name, std::make_pair(*author, a));
     
    267268    size_t end_line=0;
    268269    std::string prefix;
    269     if (!detect_copyright(old_block, start_line, end_line, prefix))
     270    if (!detect_copyright(old_block, start_line, end_line, prefix)){
     271      if (Configuration::instance().missing_copyright_warning())
     272        std::cerr << "svndigest: warning: no copyright statement found in `"
     273                  << path_ << "'\n";
    270274      return;
     275    }
    271276    std::map<int, std::set<Alias> > map=copyright_map(alias);
    272277    std::string new_block = copyright_block(map, prefix);
Note: See TracChangeset for help on using the changeset viewer.