history.jsp revision ebb9f739bca3bc9382340b628554b484e4837d6a
c25356d5978632df6203437e1953bcb29e0c736fTimo SirainenCDDL HEADER START
ea37a9aedfc3a6ff5f4ea10bc4eff4ca23f62a15Timo SirainenThe contents of this file are subject to the terms of the
ea37a9aedfc3a6ff5f4ea10bc4eff4ca23f62a15Timo SirainenCommon Development and Distribution License (the "License").
ea37a9aedfc3a6ff5f4ea10bc4eff4ca23f62a15Timo SirainenYou may not use this file except in compliance with the License.
ea37a9aedfc3a6ff5f4ea10bc4eff4ca23f62a15Timo SirainenSee LICENSE.txt included in this distribution for the specific
ea37a9aedfc3a6ff5f4ea10bc4eff4ca23f62a15Timo Sirainenlanguage governing permissions and limitations under the License.
34435ce4a468dc13b23db69dbdd09fe20be88816Timo SirainenWhen distributing Covered Code, include this CDDL HEADER in each
34435ce4a468dc13b23db69dbdd09fe20be88816Timo Sirainenfile and include the License file at LICENSE.txt.
34435ce4a468dc13b23db69dbdd09fe20be88816Timo SirainenIf applicable, add the following below this CDDL HEADER, with the
ea37a9aedfc3a6ff5f4ea10bc4eff4ca23f62a15Timo Sirainenfields enclosed by brackets "[]" replaced with your own identifying
fe363b433b8038a69b55169da9dca27892ad7d18Timo Siraineninformation: Portions Copyright [yyyy] [name of copyright owner]
ea37a9aedfc3a6ff5f4ea10bc4eff4ca23f62a15Timo SirainenCDDL HEADER END
ident "@(#)history.jsp 1.1 05/11/11 SMI"
--%><%@ page import = "javax.servlet.*,
java.io.*,
%><%@include file="mast.jsp"%><%
if (path.length() > 0) {
Pattern bugPattern = Pattern.compile("\\b([12456789][0-9]{6})\\b");
String[] apaths = request.getParameterValues("also");
if (apaths!= null && apaths.length>0) {
for(int i=0; i< apaths.length; i++) {
paths.append(' ');
paths.append(apaths[i]);
apath = paths.toString();
hr = new DirectoryHistoryReader(getServletContext().getInitParameter("DATA_ROOT") + "/index", apath, getServletContext().getInitParameter("SRC_ROOT"));
hr = HistoryGuru.getInstance().getHistoryReader(f);
<tr><td colspan="4"><span class="pagetitle">History log of <a href="<%= context +"/xref" + path %>"><%=basename%></a></span></td></tr>
while (hr.next()) {
String rev = hr.getRevision();
if(hr.isActive()) {
%><td> <a name="<%=rev%>" href="<%= context +"/xref" + path + "?r=" + rev %>"><%=rev%></a> </td><td align="center"><input type="radio" name="r1" value="<%=rev%>"/>
if(userPage != null && ! userPage.equals("")) {
%><%= hr.getAuthor() %><%
(bugPage != null && ! bugPage.equals("")) ?
bugPattern.matcher(Util.Htmlize(hr.getComment())).replaceAll("<a href=\"" + bugPage + "$1\">$1</a>")
ArrayList files = hr.getFiles();
Iterator ifiles = files.iterator();
while(ifiles.hasNext()) {
String ifile = (String)ifiles.next();
hr.close();
%><p><b>Note:</b> No associated file changes are available for revisions with strike-through numbers (eg. <strike>1.45</strike>)</p><%
%><p class="rssbadge"><a href="<%=context%>/rss<%=path%>"><img src="<%=context%>/img/rss.png" width="80" height="15" alt="RSS XML Feed" title="RSS XML Feed of latest changes"/></a></p><%
response.sendError(404, "No history");
%><%@include file="foot.html"%>