Changeset 195


Ignore:
Timestamp:
Sep 7, 2006, 3:44:35 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Added more verbose output. Improved error diagnstics in SVN.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigest.cc

    r180 r195  
    5656  try {
    5757    option = new Parameter(argc,argv);
     58    if (option->verbose())
     59      std::cout << "Done parsing parameters" << std::endl;
    5860  }
    5961  catch (std::runtime_error e) {
     
    6567  SVN* svn=SVN::instance();
    6668  try {
     69    if (option->verbose())
     70      std::cout << "Connecting to WC adminstative area" << std::endl;
    6771    svn->setup_wc_adm_access(option->root());
    6872  }
     
    7478
    7579  // check if target already exists and behave appropriately
     80  if (option->verbose())
     81    std::cout << "Checking target directory" << std::endl;
    7682  std::string target_path=option->targetdir() + '/' + file_name(option->root());
    7783  bool need_to_erase_target = check_target(target_path);
     
    8389  std::string repo;
    8490  try {
     91    if (option->verbose())
     92      std::cout << "Acquiring repository information" << std::endl;
    8593    repo=SVNinfo(option->root()).repos_root_url();
    8694  }
     
    96104  // statements below and will not remove a digest tree below if a
    97105  // tree already exists.
     106  if (option->verbose())
     107    std::cout << "Building directory tree" << std::endl;
    98108  Directory tree(0,option->root(),"");
     109  if (option->verbose())
     110    std::cout << "Parsing directory tree" << std::endl;
    99111  tree.parse(option->verbose());
    100112
     
    102114  std::vector<std::string> commit_dates;
    103115  try {
     116    if (option->verbose())
     117      std::cout << "Retrieving commit dates" << std::endl;
    104118    svn->setup_ra_session(repo);
    105119    commit_dates=svn->commit_dates(repo);
     
    113127  if (need_to_erase_target) {
    114128      if (option->verbose())
    115         std::cout << "rm -rf " << target_path << "\n";
     129        std::cout << "Removing old target tree: " << target_path << "\n";
    116130      rmdirhier(target_path);
    117131  }
    118132
     133  if (option->verbose())
     134    std::cout << "Generating output" << std::endl;
    119135  if (!option->revisions())
    120136    GnuplotFE::instance()->set_dates(commit_dates);
     
    127143    std::cerr << "svndigest: " << x.what() << std::endl;
    128144  }
     145  if (option->verbose())
     146    std::cout << "Finalizing" << std::endl;
    129147  std::string css(file_name(option->root())+"/svndigest.css");
    130148  std::ofstream os(css.c_str());
     
    133151
    134152  delete option;
     153  if (option->verbose())
     154    std::cout << "Done!" << std::endl;
    135155  exit(0);        // normal exit
    136156}
  • trunk/configure.ac

    r192 r195  
    2727
    2828AC_PREREQ(2.57)
    29 AC_INIT([[svndigest]],[0.5],[jari@thep.lu.se])
     29AC_INIT([[svndigest]],[pre0.6],[jari@thep.lu.se])
    3030AC_CONFIG_SRCDIR([lib/File.h])
    3131AC_CONFIG_AUX_DIR([autotools])
  • trunk/lib/SVN.cc

    r191 r195  
    167167                                         false, subpool);
    168168        if (err)
    169           cleanup(err, subpool, "property: svn_subst_detranslate_string failed");
     169          cleanup(err, subpool,
     170                  path +
     171                  " property: svn_subst_detranslate_string failed on key " +
     172                  static_cast<const char*>(key));
    170173        property[static_cast<const char*>(key)]=value->data;
    171174      }
Note: See TracChangeset for help on using the changeset viewer.