history.jsp revision 85f619afce0f5860dd3265e1ac5c48efcb353921
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCDDL HEADER START
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithThe contents of this file are subject to the terms of the
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCommon Development and Distribution License (the "License").
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithYou may not use this file except in compliance with the License.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithSee LICENSE.txt included in this distribution for the specific
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithlanguage governing permissions and limitations under the License.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithWhen distributing Covered Code, include this CDDL HEADER in each
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithfile and include the License file at LICENSE.txt.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithIf applicable, add the following below this CDDL HEADER, with the
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithfields enclosed by brackets "[]" replaced with your own identifying
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithinformation: Portions Copyright [yyyy] [name of copyright owner]
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCDDL HEADER END
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCopyright 2005 Sun Microsystems, Inc. All rights reserved.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithUse is subject to license terms.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithident "@(#)history.jsp 1.1 05/11/11 SMI"
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith--%><%@ page import = "javax.servlet.*,
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith%><%@include file="mast.jsp"%><%
if (path.length() > 0 && valid) {
String userPage = environment.getUserPage();
String bugPage = environment.getBugPage();
String bugRegex = environment.getBugPattern();
if(bugRegex == null || bugRegex.equals("")) {
Pattern bugPattern = Pattern.compile(bugRegex);
HistoryReader hr = HistoryGuru.getInstance().getHistoryReader(f);
response.sendError(404, "No history");
<td colspan="4"><span class="pagetitle">History log of <a href="<%= context +"/xref" + path %>"><%=path%></a></span></td>
while (hr.next()) {
String rev = hr.getRevision();
if (rev == null || rev.length() == 0) {
rev = Util.URIEncode(rev);
if(hr.isActive()) {
rp = Util.URIEncodePath(rp);
%><td> <a name="<%=rev%>" href="<%= context +"/xref" + rp + "?r=" + rev %>"><%=rev%></a> </td><td align="center"><input type="radio" name="r1" value="<%=rp%>@<%=rev%>"/>
Date date = hr.getDate();
%><%=df.format(date)%><%
if(userPage != null && ! userPage.equals("")) {
%><%= hr.getAuthor() %><%
(bugPage != null && ! bugPage.equals("")) ?
bugPattern.matcher(Util.Htmlize(hr.getComment())).replaceAll("<a href=\"" + bugPage + "$1\">$1</a>")
List<String> files = hr.getFiles();
jfile = ifile.substring(1);
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<%=Util.URIEncodePath(path)%>"><img src="<%=context%>/<%=environment.getWebappLAF()%>/img/rss.png" width="80" height="15" alt="RSS XML Feed" title="RSS XML Feed of latest changes"/></a></p><%
%><%@include file="foot.jspf"%>