Changeset 1293 for trunk/lib/File.cc


Ignore:
Timestamp:
Nov 14, 2010, 6:34:10 AM (11 years ago)
Author:
Peter Johansson
Message:

rewrite svndigest-copy-cache in C++. closes #463

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r1290 r1293  
    6161
    6262
     63  std::string File::cache_name(void) const
     64  {
     65    std::string dir = concatenate_path(directory_name(path()), ".svndigest/");
     66    return dir + name() + ".svndigest-cache";
     67  }
     68
     69
    6370  std::string File::href(void) const
    6471  {
     
    8996      std::cout << "Parsing '" << path_ << "'" << std::endl;
    9097    stats_.reset();
    91     std::string cache_dir = directory_name(path()) + std::string(".svndigest/");
    92     std::string cache_file = cache_dir + name()+std::string(".svndigest-cache");
     98    std::string cache_file = cache_name();
     99    std::string cache_dir = directory_name(cache_file);
    93100    if (!ignore && node_exist(cache_file)){
    94101      std::ifstream is(cache_file.c_str());
Note: See TracChangeset for help on using the changeset viewer.