Changeset 1287
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/File.cc
r1286 r1287 161 161 if (!Graph::date_xticks()) { 162 162 using_dates=false; 163 last = stats_["classic"].revision(); 163 first = Graph::rev_min(); 164 last = Graph::rev_max(); 164 165 } 165 166 else { 166 last = Graph::xticks().back(); 167 // earliest date corresponds either to revision 0 or revision 1 168 first = std::min(Graph::xticks()[0],Graph::xticks()[1]); 169 } 167 first = Graph::xticks()[Graph::rev_min()]; 168 assert(Graph::rev_max()<Graph::xticks().size()); 169 last = Graph::xticks()[Graph::rev_max()]; 170 } 171 assert(last>first); 170 172 // color is calculated linearly on time, c = kt + m 171 173 // brightest color (for oldest rev in log) is set to 192. -
trunk/lib/Graph.cc
r1280 r1287 173 173 174 174 175 svn_revnum_t Graph::rev_max(void) 176 { 177 return rev_max_; 178 } 179 180 175 181 void Graph::rev_min(svn_revnum_t rev) 176 182 { 177 183 rev_min_ = rev; 184 } 185 186 187 svn_revnum_t Graph::rev_min(void) 188 { 189 return rev_min_; 178 190 } 179 191 -
trunk/lib/Graph.h
r1280 r1287 105 105 106 106 /** 107 Gets the right end of xrange to correspond to revision \a rev. 108 */ 109 static svn_revnum_t rev_max(void); 110 111 /** 107 112 Sets the left end of xrange to correspond to revision \a rev. 108 113 */ 109 114 static void rev_min(svn_revnum_t rev); 115 116 /** 117 Gets the left end of xrange to correspond to revision \a rev. 118 */ 119 static svn_revnum_t rev_min(void); 110 120 111 121 /**
Note: See TracChangeset
for help on using the changeset viewer.