From 61b50f37e44ddbd82acd20f7ab8eed56639cfaef Mon Sep 17 00:00:00 2001 From: "tara%tequilarista.org" Date: Thu, 24 Oct 2002 17:53:38 +0000 Subject: [PATCH] Partial fix for bug 104313, making the default behavior of the diff page be correct, at least --- webtools/bonsai/cvsview2.cgi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webtools/bonsai/cvsview2.cgi b/webtools/bonsai/cvsview2.cgi index 77833d82d22..eeb3cc38960 100755 --- a/webtools/bonsai/cvsview2.cgi +++ b/webtools/bonsai/cvsview2.cgi @@ -508,7 +508,12 @@ sub do_diff_links { my $lxr_path = "$opt_subdir/$opt_file"; my $lxr_link = Fix_LxrLink($lxr_path); - my $blame_link = "$blame_base?file=$opt_subdir/$opt_file"; + +# Partial fix for bug 104313, which tries to fix blame links to be more intuitive. +# In this case, make the default behavior be that blame revisions match the requested +# diff version, rather than always showing the tip. + + my $blame_link = "$blame_base?file=$opt_subdir/$opt_file&rev=$opt_rev2"; $blame_link .= "&root=$opt_root" if defined($opt_root); my $diff_link = "$magic_url&command=DIRECTORY&file=$opt_file&rev1=$opt_rev1&rev2=$opt_rev2"; $diff_link .= "&root=$opt_root" if defined($opt_root);