зеркало из https://github.com/mozilla/gecko-dev.git
Bug 144837 bonsai file display always shows trunk revision
r=tara
This commit is contained in:
Родитель
d28ebee67f
Коммит
692c34b6a4
|
@ -105,6 +105,8 @@ my ($file_head, $file_tail) = $filename =~ m@(.*/)?(.+)@;
|
||||||
#
|
#
|
||||||
$::opt_rev = '';
|
$::opt_rev = '';
|
||||||
$::opt_rev = $::FORM{rev} if defined $::FORM{rev} and $::FORM{rev} ne 'HEAD';
|
$::opt_rev = $::FORM{rev} if defined $::FORM{rev} and $::FORM{rev} ne 'HEAD';
|
||||||
|
my $revstr = '';
|
||||||
|
$revstr = "&rev=$::opt_rev" unless $::opt_rev eq '';
|
||||||
my $browse_revtag = 'HEAD';
|
my $browse_revtag = 'HEAD';
|
||||||
$browse_revtag = $::opt_rev if ($::opt_rev =~ /[A-Za-z]/);
|
$browse_revtag = $::opt_rev if ($::opt_rev =~ /[A-Za-z]/);
|
||||||
my $revision = '';
|
my $revision = '';
|
||||||
|
@ -261,7 +263,7 @@ print qq(
|
||||||
</TD>
|
</TD>
|
||||||
</TR><TR>
|
</TR><TR>
|
||||||
<TD NOWRAP>
|
<TD NOWRAP>
|
||||||
<A HREF="cvslog.cgi?file=$filename">Full Change Log</A>
|
<A HREF="cvslog.cgi?file=$filename$revstr">Full Change Log</A>
|
||||||
</TD>
|
</TD>
|
||||||
$graph_cell
|
$graph_cell
|
||||||
</TR>
|
</TR>
|
||||||
|
|
|
@ -75,6 +75,8 @@ my ($file_head, $file_tail) = $filename =~ m@(.*/)?(.+)@;
|
||||||
#
|
#
|
||||||
$::opt_rev = "";
|
$::opt_rev = "";
|
||||||
$::opt_rev = $::FORM{'rev'} if defined $::FORM{'rev'} && $::FORM{'rev'} !~ m/^(HEAD|MAIN)$/;
|
$::opt_rev = $::FORM{'rev'} if defined $::FORM{'rev'} && $::FORM{'rev'} !~ m/^(HEAD|MAIN)$/;
|
||||||
|
my $revstr = '';
|
||||||
|
$revstr = "&rev=$::opt_rev" unless $::opt_rev eq '';
|
||||||
my $browse_revtag = 'HEAD';
|
my $browse_revtag = 'HEAD';
|
||||||
$browse_revtag = $::opt_rev if ($::opt_rev =~ /[A-Za-z]/);
|
$browse_revtag = $::opt_rev if ($::opt_rev =~ /[A-Za-z]/);
|
||||||
my $revision = '';
|
my $revision = '';
|
||||||
|
@ -219,7 +221,7 @@ print qq(
|
||||||
</TD>
|
</TD>
|
||||||
</TR><TR>
|
</TR><TR>
|
||||||
<TD>
|
<TD>
|
||||||
<A HREF="cvsblame.cgi?file=$filename">blame</A>
|
<A HREF="cvsblame.cgi?file=$filename$revstr">blame</A>
|
||||||
</TD><TD NOWRAP>
|
</TD><TD NOWRAP>
|
||||||
Annotate the author of each line.
|
Annotate the author of each line.
|
||||||
</TD>
|
</TD>
|
||||||
|
|
|
@ -201,7 +201,7 @@ $split = int(@files/4)+1;
|
||||||
|
|
||||||
for $_ (@files){
|
for $_ (@files){
|
||||||
$_ =~ s/\,v//;
|
$_ =~ s/\,v//;
|
||||||
print qq{<a href="$registryurl/file.cgi?cvsroot=$CVS_ROOT&file=$_&dir=$dir"}
|
print qq{<a href="$registryurl/file.cgi?cvsroot=$CVS_ROOT&file=$_&dir=$dir$revstr"}
|
||||||
. " onclick=\"return js_file_menu('$dir','$_','$rev','$CVS_ROOT',event)\">\n";
|
. " onclick=\"return js_file_menu('$dir','$_','$rev','$CVS_ROOT',event)\">\n";
|
||||||
print "<dt>$_</a>\n";
|
print "<dt>$_</a>\n";
|
||||||
if( $j % $split == 0 ){
|
if( $j % $split == 0 ){
|
||||||
|
|
Загрузка…
Ссылка в новой задаче