Fossil SCM

Cherry-pick from [f1e99a5a408c]: minor annotate/blame url rendering bug.

andybradford 2014-03-05 06:24 trunk
Commit 904ab4bbb844001a725a80d548f2c2f41db0a680
1 file changed +5 -1
+5 -1
--- src/diff.c
+++ src/diff.c
@@ -2172,11 +2172,15 @@
21722172
annotate_file(&ann, fnid, mid, iLimit, annFlags);
21732173
zCI = ann.aVers[0].zMUuid;
21742174
21752175
/* generate the web page */
21762176
style_header("Annotation For %h", zFilename);
2177
- url_initialize(&url, "annotate");
2177
+ if( bBlame ){
2178
+ url_initialize(&url, "blame");
2179
+ }else{
2180
+ url_initialize(&url, "annotate");
2181
+ }
21782182
url_add_parameter(&url, "checkin", P("checkin"));
21792183
url_add_parameter(&url, "filename", zFilename);
21802184
if( iLimit!=20 ){
21812185
url_add_parameter(&url, "limit", sqlite3_mprintf("%d", iLimit));
21822186
}
21832187
--- src/diff.c
+++ src/diff.c
@@ -2172,11 +2172,15 @@
2172 annotate_file(&ann, fnid, mid, iLimit, annFlags);
2173 zCI = ann.aVers[0].zMUuid;
2174
2175 /* generate the web page */
2176 style_header("Annotation For %h", zFilename);
2177 url_initialize(&url, "annotate");
 
 
 
 
2178 url_add_parameter(&url, "checkin", P("checkin"));
2179 url_add_parameter(&url, "filename", zFilename);
2180 if( iLimit!=20 ){
2181 url_add_parameter(&url, "limit", sqlite3_mprintf("%d", iLimit));
2182 }
2183
--- src/diff.c
+++ src/diff.c
@@ -2172,11 +2172,15 @@
2172 annotate_file(&ann, fnid, mid, iLimit, annFlags);
2173 zCI = ann.aVers[0].zMUuid;
2174
2175 /* generate the web page */
2176 style_header("Annotation For %h", zFilename);
2177 if( bBlame ){
2178 url_initialize(&url, "blame");
2179 }else{
2180 url_initialize(&url, "annotate");
2181 }
2182 url_add_parameter(&url, "checkin", P("checkin"));
2183 url_add_parameter(&url, "filename", zFilename);
2184 if( iLimit!=20 ){
2185 url_add_parameter(&url, "limit", sqlite3_mprintf("%d", iLimit));
2186 }
2187

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button