Fossil SCM

Disable the "Diffs" link from the check-in information page. Better to use the click-to-diff feature of the graph. The code was disabled using #if 0 so it is easy to reactivate it if desired.

drh 2012-12-06 02:51 trunk
Commit 89ab1185bfdba4b3e9bcd63c8f558f307500f1d7
1 file changed +2
+2
--- src/info.c
+++ src/info.c
@@ -571,10 +571,11 @@
571571
zThisBranch = db_text("trunk", "SELECT value FROM tagxref"
572572
" WHERE tagid=%d AND tagtype>0"
573573
" AND rid=%d",
574574
TAG_BRANCH, rid);
575575
576
+#if 0
576577
/* Find nearby leaves to offer to diff against */
577578
db_prepare(&q,
578579
"SELECT tagxref.value, blob.uuid, min(%.17g-event.mtime)"
579580
" FROM leaf, event, tagxref, blob"
580581
" WHERE event.mtime BETWEEN %.17g AND %.17g"
@@ -614,10 +615,11 @@
614615
@ this branch</a>
615616
}
616617
if( seenDiffTitle ){
617618
@ </td></tr>
618619
}
620
+#endif
619621
620622
/* The Download: line */
621623
if( g.perm.Zip ){
622624
char *zUrl = mprintf("%R/tarball/%t-%S.tar.gz?uuid=%s",
623625
zProjName, zUuid, zUuid);
624626
--- src/info.c
+++ src/info.c
@@ -571,10 +571,11 @@
571 zThisBranch = db_text("trunk", "SELECT value FROM tagxref"
572 " WHERE tagid=%d AND tagtype>0"
573 " AND rid=%d",
574 TAG_BRANCH, rid);
575
 
576 /* Find nearby leaves to offer to diff against */
577 db_prepare(&q,
578 "SELECT tagxref.value, blob.uuid, min(%.17g-event.mtime)"
579 " FROM leaf, event, tagxref, blob"
580 " WHERE event.mtime BETWEEN %.17g AND %.17g"
@@ -614,10 +615,11 @@
614 @ this branch</a>
615 }
616 if( seenDiffTitle ){
617 @ </td></tr>
618 }
 
619
620 /* The Download: line */
621 if( g.perm.Zip ){
622 char *zUrl = mprintf("%R/tarball/%t-%S.tar.gz?uuid=%s",
623 zProjName, zUuid, zUuid);
624
--- src/info.c
+++ src/info.c
@@ -571,10 +571,11 @@
571 zThisBranch = db_text("trunk", "SELECT value FROM tagxref"
572 " WHERE tagid=%d AND tagtype>0"
573 " AND rid=%d",
574 TAG_BRANCH, rid);
575
576 #if 0
577 /* Find nearby leaves to offer to diff against */
578 db_prepare(&q,
579 "SELECT tagxref.value, blob.uuid, min(%.17g-event.mtime)"
580 " FROM leaf, event, tagxref, blob"
581 " WHERE event.mtime BETWEEN %.17g AND %.17g"
@@ -614,10 +615,11 @@
615 @ this branch</a>
616 }
617 if( seenDiffTitle ){
618 @ </td></tr>
619 }
620 #endif
621
622 /* The Download: line */
623 if( g.perm.Zip ){
624 char *zUrl = mprintf("%R/tarball/%t-%S.tar.gz?uuid=%s",
625 zProjName, zUuid, zUuid);
626

Keyboard Shortcuts

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