Changeset 1358
- Timestamp:
- Jun 1, 2011, 1:38:22 AM (11 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/CopyrightVisitor.cc
r1321 r1358 2 2 3 3 /* 4 Copyright (C) 2010 Peter Johansson4 Copyright (C) 2010, 2011 Peter Johansson 5 5 6 6 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 23 23 24 24 #include "Configuration.h" 25 #include "CopyrightStats.h" 25 26 #include "Directory.h" 26 27 #include "File.h" … … 175 176 return; 176 177 } 177 std::map<int, std::set<Alias> > map; 178 create_year2alias(map, file); 178 if (verbose_) 179 std::cout << "Parsing '" << file.path() << "'\n"; 180 CopyrightStats stats(file.path(), ignore_cache_, alias_, year2rev_); 181 const std::map<int, std::set<Alias> >& map = stats.map(); 182 assert(!map.empty()); 179 183 std::string new_block = copyright_block(map, prefix); 180 184 if (old_block==new_block) … … 231 235 if (file.ignore() || file.svncopyright_ignore()) 232 236 return; 233 file.parse(verbose_, ignore_cache_);234 237 update_copyright(file); 235 file.stats().reset(); 238 239 //file.parse(verbose_, ignore_cache_); 240 //update_copyright(file); 241 //file.stats().reset(); 236 242 } 237 243 -
trunk/lib/Makefile.am
r1337 r1358 29 29 noinst_HEADERS = AddStats.h Alias.h BlameStats.h CacheCopyer.h ClassicStats.h \ 30 30 Colors.h Commitment.h Configuration.h \ 31 Copyright Visitor.h css.h \31 CopyrightStats.h CopyrightVisitor.h css.h \ 32 32 Date.h Directory.h DirectoryPrinter.h File.h FilePrinter.h \ 33 33 first_page.h Functor.h \ … … 52 52 libsvndigest_core_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \ 53 53 CacheCopyer.cc ClassicStats.cc Colors.cc \ 54 Commitment.cc Configuration.cc Copyright Visitor.cc \54 Commitment.cc Configuration.cc CopyrightStats.cc CopyrightVisitor.cc \ 55 55 css.cc Date.cc Directory.cc File.cc \ 56 56 Functor.cc HtmlBuf.cc HtmlStream.cc \
Note: See TracChangeset
for help on using the changeset viewer.