зеркало из https://github.com/mozilla/gecko-dev.git
Bug 176316 Add Last-Modified support to bonsai
Adds optional path parameter to parse_rcs_file Adds required http header call to do_directory patch by rperrot@debian.org r=justdave
This commit is contained in:
Родитель
2ccffbbee7
Коммит
87f22fce3a
|
@ -404,7 +404,12 @@ sub parse_rcs_deltatext {
|
|||
|
||||
|
||||
# Reads and parses complete RCS file from already-opened RCSFILE descriptor.
|
||||
# Or if a parameter is given use the corresponding file
|
||||
sub parse_rcs_file {
|
||||
my $path = shift;
|
||||
if (defined $path) {
|
||||
open (RCSFILE, "< $path");
|
||||
}
|
||||
print "Reading RCS admin...\n" if ($debug >= 2);
|
||||
&parse_rcs_admin();
|
||||
print "Reading RCS revision tree topology...\n" if ($debug >= 2);
|
||||
|
@ -423,6 +428,7 @@ sub parse_rcs_file {
|
|||
print "Reading RCS revision deltas...\n" if ($debug >= 2);
|
||||
&parse_rcs_deltatext();
|
||||
print "Done reading RCS file...\n" if ($debug >= 2);
|
||||
close RCSFILE if (defined $path);
|
||||
}
|
||||
|
||||
# Map a tag to a numerical revision number. The tag can be a symbolic
|
||||
|
|
|
@ -214,7 +214,7 @@ sub http_lastmod {
|
|||
# Create top-level frameset document.
|
||||
sub do_diff_frameset {
|
||||
chdir($dir);
|
||||
http_lastmod;
|
||||
http_lastmod;
|
||||
print "<TITLE>$opt_file: $opt_rev1 vs. $opt_rev2</TITLE>\n";
|
||||
print "<FRAMESET ROWS='*,90' FRAMESPACING=0 BORDER=1>\n";
|
||||
|
||||
|
@ -232,7 +232,7 @@ http_lastmod;
|
|||
|
||||
# Create links to document created by DIFF command.
|
||||
sub do_diff_links {
|
||||
http_lastmod;
|
||||
http_lastmod;
|
||||
print qq%
|
||||
<HEAD>
|
||||
<SCRIPT $::script_type><!--
|
||||
|
@ -371,7 +371,7 @@ sub guess_tab_width {
|
|||
|
||||
# Create gdiff-like output.
|
||||
sub do_diff {
|
||||
http_lastmod;
|
||||
http_lastmod;
|
||||
print "<HTML><HEAD>";
|
||||
print "<TITLE>$opt_file: $opt_rev1 vs. $opt_rev2</TITLE>\n";
|
||||
print "</HEAD>";
|
||||
|
@ -393,7 +393,7 @@ http_lastmod;
|
|||
|
||||
# Show specified CVS log entry.
|
||||
sub do_log {
|
||||
http_lastmod;
|
||||
http_lastmod;
|
||||
print "<TITLE>$opt_file: $opt_rev CVS log entry</TITLE>\n";
|
||||
print '<PRE>';
|
||||
|
||||
|
@ -423,7 +423,7 @@ http_lastmod;
|
|||
# two of its revisions.
|
||||
#
|
||||
sub do_directory {
|
||||
|
||||
print $request->header();
|
||||
my $output = "<DIV ALIGN=LEFT>";
|
||||
my $link_path = "";
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче