Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2003 17:28:58 -0000
From:      Christophe Kalt <kalt@taranis.org>
To:        freebsd-cvsweb@FreeBSD.org
Subject:   couple minor bugs
Message-ID:  <20030530172855.GA25514@bzz.taranis.org>

next in thread | raw e-mail | index | archive | help

--Q68bSM7Ycu6FN28Q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

You need to set stdout to be automatically flushed to avoid
having a child (such as cvsgraph) flushing the same content
as the parent a second time.

a "$| = 1;" well placed (may be in BEGIN) does the trick.

The attached diff also fixes a small problem with DoGraphView.

Finally, having working annotations w/o read-write access is
awesome, finally, thanks!  You may want to update the comments
for $allow_annotate.

Christophe

--Q68bSM7Ycu6FN28Q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="cvsweb.diff"

--- cvsweb.cgi	2003-05-30 12:17:20.171957009 -0400
+++ /tmp/cvsweb.cgi	2003-05-30 13:25:30.821001000 -0400
@@ -136,6 +136,8 @@
   $LOG_REVSEPARATOR  = qr/^-{28}$/o;
 
   $CvsWebMarkupRE = qr/^text\/(x-cvsweb|vnd\.viewcvs)-markup$/io;
+
+  $| = 1;
 }
 
 # -----------------------------------------------------------------------------
@@ -2775,9 +2777,9 @@
   my $mapname = 'CvsGraphMap';
   my $ctype = $defaultViewable ? '&amp;content-type=text/x-cvsweb-markup' : '';
 
-  printf(<<EOF, $title, $mapname, $rev, $title);
+  printf(<<EOF, $title, $mapname, $cvsroot, $rev, $title);
 <h3 style="text-align: center">%s</h3>
-<div align="center"><img border="0" usemap="#%s" src="?graph=%s&amp;makeimage=1" alt="%s"></div>
+<div align="center"><img border="0" usemap="#%s" src="?cvsroot=%s&graph=%s&amp;makeimage=1" alt="%s"></div>
 EOF
 
   my @graph_cmd =

--Q68bSM7Ycu6FN28Q--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030530172855.GA25514>