source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: cvsweb: Delete cvshistory.cgi tentacles, yet another piece of
Date: Tue, 26 Nov 2019 06:21:58 -0500 (EST)	[thread overview]
Message-ID: <8d07951786cafb12@mandoc.bsd.lv> (raw)

Log Message:
-----------
Delete cvshistory.cgi tentacles, yet another piece of abandonware.
If it contained anything of value, those parts should be integrated.

Modified Files:
--------------
    cvsweb:
        INSTALL
        README
        cvsweb.cgi
        cvsweb.conf

Revision Data
-------------
Index: README
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/README,v
retrieving revision 4.7
retrieving revision 4.8
diff -LREADME -LREADME -u -p -r4.7 -r4.8
--- README
+++ README
@@ -80,8 +80,6 @@ o Security fixes to let it work under pe
 
 o Annotate works under mod_perl and against a read only repository.
 
-o CVSHistory <http://www.jamwt.com/CVSHistory/> integration.
-
 o Line number output for HTMLized views.
 
 o Support for showing README.cvs.html and README.cvs akin to Apache's
Index: cvsweb.conf
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf,v
retrieving revision 4.10
retrieving revision 4.11
diff -Lcvsweb.conf -Lcvsweb.conf -u -p -r4.10 -r4.11
--- cvsweb.conf
+++ cvsweb.conf
@@ -441,11 +441,6 @@ $use_moddate = 1;
 #
 #$file_list_len = 200;
 
-# URL to the CVSHistory script.  This should be absolute (but does not need
-# to include the host and port if the script is on the same server as
-# CVSweb).
-#$cvshistory_url = "/cgi-bin/cvshistory.cgi";
-
 # Whether to allow downloading a tarball or a zip of the current directory.
 # While downloading of the entire repository is disallowed, depending on
 # the directory this may take a lot of time and disk space.  For some CVS
Index: INSTALL
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/INSTALL,v
retrieving revision 4.6
retrieving revision 4.7
diff -LINSTALL -LINSTALL -u -p -r4.6 -r4.7
--- INSTALL
+++ INSTALL
@@ -39,9 +39,6 @@ of this document.
    repository (or a copy of it) therefore; rsh, ssh or pserver access
    doesn't work yet.
 
-   Install CVSHistory if you want to use it with CVSweb, and see (8) for
-   configuration notes.  You'll need version 2.0 or newer.
-
 2) Copy cvsweb.conf to a configuration directory, typically
    /usr/local/etc/cvsweb/cvsweb.conf.
    Edit cvsweb.conf to fit your needs, you'll probably need to tweak the
@@ -72,11 +69,6 @@ of this document.
 5) Copy cvsweb.css from the css/ directory to a web server directory, and
    point the $cssurl variable in cvsweb.conf to it.
 
-8) CVSHistory <http://www.jamwt.com/CVSHistory/> can be used with this
-   version of CVSweb.  See the $cvshistory_url configuration variable in
-   cvsweb.conf.  For best results, configure CVSweb and CVSHistory to use
-   the same "logical names" for CVS roots.
-
 9) If you like you can add descriptions to be shown next to each directory
    or module name.  These are read from CVSROOT/descriptions.
 
@@ -149,13 +141,6 @@ Upgrading to 3.0.3
 The following configuration variables in cvsweb.conf have changed:
 
   $DEBUG is new, and optional.  See comments in cvsweb.conf.
-
-Upgrading to 3.0.1
-------------------
-
-The following configuration variables in cvsweb.conf have changed:
-
-   $cvshistory_url is new, and optional.  See comments in cvsweb.conf.
 
 Upgrading to 3.0.0
 ------------------
Index: cvsweb.cgi
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.cgi,v
retrieving revision 4.22
retrieving revision 4.23
diff -Lcvsweb.cgi -Lcvsweb.cgi -u -p -r4.22 -r4.23
--- cvsweb.cgi
+++ cvsweb.cgi
@@ -81,7 +81,7 @@ use vars qw (
   $use_moddate $gzip_open $file_list_len
   $allow_tar @tar_options @gzip_options @zip_options @cvs_options
   @annotate_options @rcsdiff_options
-  $HTML_DOCTYPE $HTML_META $cssurl $CSS $cvshistory_url
+  $HTML_DOCTYPE $HTML_META $cssurl $CSS
 );
 
 require Compress::Zlib;
@@ -173,7 +173,6 @@ sub download_url($$;$);
 sub download_link($$$;$);
 sub display_url($$;$);
 sub display_link($$;$$);
-sub history_link($$;$);
 sub toggleQuery($;$);
 sub htmlquote($);
 sub htmlunquote($);
@@ -206,7 +205,7 @@ $cvstreedefault = $logo = $defaulttitle 
   $allow_markup = $allow_compress = $edit_option_form =
   $show_subdir_lastmod = $show_log_in_markup = $preformat_in_markup =
   $tabstop = $use_moddate = $gzip_open = $DEBUG =
-  $cvshistory_url = $allow_tar = undef;
+  $allow_tar = undef;
 
 $allow_version_select = $allow_mailtos = $allow_log_extra = 1;
 
@@ -816,10 +815,6 @@ if (-d $fullname) {
 
   } else {
     print '<p>Current directory: <b>', clickablePath($where, 0), '</b>';
-    if ($cvshistory_url) {
-      (my $d = $where) =~ s|^/*(.*?)/*$|$1|;
-      print ' - ', history_link($d, '');
-    }
     print "</p>\n";
     print "<p>Current tag: <b>", htmlquote($input{only_with_tag}), "</b></p>\n"
       if $input{only_with_tag};
@@ -2932,10 +2927,6 @@ sub doLog($)
     &clickablePath($upwhere, 1), "</b>\n</p>\n";
   print "<p>\n ";
   print &link('Request diff between arbitrary revisions', '#diff');
-  if ($cvshistory_url) {
-    (my $d = $upwhere) =~ s|/+$||;
-    print ' - ', history_link($d, $filename);
-  }
   print "\n</p>\n<hr />\n";
 
   print "<p>\n";
@@ -3666,21 +3657,6 @@ sub display_link($$;$$)
   return sprintf('<a href="%s" class="display-link">%s</a>',
                  display_url($url, $revision, $mtype) . $barequery,
                  htmlquote($textlink));
-}
-
-#
-# Returns a link to CVSHistory for the given directory and filename.
-#
-sub history_link($$;$)
-{
-  my ($dir, $file, $text) = @_;
-  $dir  ||= '';
-  $file ||= '';
-  $text ||= 'History';
-  return &link($text,
-               sprintf('%s?cvsroot=%s;dsearch=%s;fsearch=%s;limit=1',
-                       $cvshistory_url, uri_escape($input{cvsroot} || ''),
-                       uri_escape($dir), uri_escape($file)));
 }
 
 # Returns a Query string with the
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

                 reply	other threads:[~2019-11-26 11:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8d07951786cafb12@mandoc.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).