Changeset 1135


Ignore:
Timestamp:
Jul 18, 2010, 8:58:37 PM (13 years ago)
Author:
Peter Johansson
Message:

fixes #330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Configuration.cc

    r1133 r1135  
    189189          mess << "in trac section" << lhs + " is invalid option.";
    190190          throw Config_error(line, mess.str());
     191        }
     192      }
     193      else if (section == "output") {
     194        if (lhs=="blame-information") {
     195          if (equal_false(rhs))
     196            output_blame_information_ = false;
     197          else if (equal_true(rhs))
     198            output_blame_information_ = true;
     199          else {
     200            throw Config_error(line, "");
     201          }
    191202        }
    192203      }
     
    518529       << "### The commented-out below are intended to demonstrate how to use\n"
    519530       << "### this file.\n"
    520        << "\n"
    521        << "### Section for setting behaviour of copyright update\n"
     531       << "\n";
     532
     533    os << "### Section for setting output\n"
     534       << "[output]\n"
     535       << "# if true svndigest will output blame information for each file.\n"
     536       << "blame-information = ";
     537    if (conf.output_blame_information())
     538      os << "yes\n";
     539    else
     540      os << "no\n";
     541
     542    os << "\n### Section for setting behaviour of copyright update\n"
    522543       << "[copyright]\n"
    523544       << "# if true svndigest will warn if file has no copyright statement.\n"
    524545       << "missing-copyright-warning = ";
    525    
    526546    if (conf.missing_copyright_warning())
    527547      os << "yes\n";
Note: See TracChangeset for help on using the changeset viewer.