Changeset 1072


Ignore:
Timestamp:
Jun 6, 2010, 5:55:07 AM (13 years ago)
Author:
Peter Johansson
Message:

refs #307. init SVN

Location:
trunk/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svncopyright.cc

    r1070 r1072  
    5252      return EXIT_SUCCESS;
    5353    }
     54
     55    if (option.verbose())
     56      std::cout << "Initializing SVN singleton." << std::endl;
     57    SVN::instance(option.root());
    5458  }
    5559  catch (std::runtime_error& e) {
  • trunk/bin/svndigest.cc

    r1070 r1072  
    8080      return EXIT_SUCCESS;
    8181    }
     82
     83    if (option.verbose())
     84      std::cout << "Initializing SVN singleton." << std::endl;
     85    SVN::instance(option.root());
    8286  }
    8387  catch (std::runtime_error& e) {
     
    8892  // just for convenience
    8993  Configuration& config = Configuration::instance();
    90 
    91   SVN* svn=NULL;
    92   try {
    93     if (option.verbose())
    94       std::cout << "Initializing SVN singleton." << std::endl;
    95     svn=SVN::instance(option.root());
    96   }
    97   catch (SVNException e) {
    98     std::cerr << "svndigest: " << e.what() << "\n";
    99     exit(EXIT_FAILURE);
    100   }
    10194
    10295  // check if target already exists and behave appropriately
Note: See TracChangeset for help on using the changeset viewer.