Changeset 1144
- Timestamp:
- Jul 25, 2010, 12:06:27 AM (13 years ago)
- Location:
- trunk/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Configuration.cc
r1143 r1144 522 522 523 523 524 const std::map<std::string, std::string>* 525 Configuration::svn_properties(const std::string&) const 526 { 527 return NULL; 528 } 529 530 524 531 std::string Configuration::trac_root(void) const 525 532 { -
trunk/lib/Configuration.h
r1143 r1144 113 113 */ 114 114 bool output_file(void) const; 115 116 /** 117 svn properties set in config file 118 119 This is supposed to be used only in SVNproperty class 120 121 \return NULL if there is no prop for \a filename in config 122 */ 123 const std::map<std::string, std::string>* 124 svn_properties(const std::string& filename) const; 115 125 116 126 /// … … 179 189 bool output_file_; 180 190 std::string trac_root_; 191 192 std::vector<std::map<std::string, std::string> > svn_props_; 181 193 }; 182 194 -
trunk/lib/SVNproperty.cc
r1137 r1144 22 22 23 23 #include "SVNproperty.h" 24 25 #include "Configuration.h" 24 26 #include "SVN.h" 27 #include "utility.h" 25 28 26 29 #include <string> … … 34 37 { 35 38 SVN::instance()->client_proplist(path, property_); 36 std::map<std::string, std::string>::const_iterator i = property_.begin(); 37 std::map<std::string, std::string>::const_iterator e = property_.end(); 39 40 const Configuration& config = Configuration::instance(); 41 typedef std::map<std::string, std::string> str_map; 42 const str_map* props = config.svn_properties(file_name(path)); 43 std::map<std::string, std::string>::const_iterator i; 44 std::map<std::string, std::string>::const_iterator e; 45 if (props) { 46 i = props->begin(); 47 e = props->end(); 48 // we can not use map::insert because we want config to have precedence 49 for ( ; i!=e; ++i) 50 property_[i->first] = i->second; 51 } 52 53 i = property_.begin(); 54 e = property_.end(); 38 55 for ( ; i!=e ; ++i) 39 56 if (i->first == "svndigest:ignore")
Note: See TracChangeset
for help on using the changeset viewer.