history.jsp revision 0dafcea0c31887f3a3b35be121d3f35ff19ec4b4
4070N/ASee LICENSE.txt included in this distribution for the specific
4070N/Afile and include the License file at LICENSE.txt.
4070N/Aident "@(#)history.jsp 1.1 05/11/11 SMI"
4070N/A--%><%@ page import = "javax.servlet.*,
4070N/A<script type="text/javascript">
4070N/A if (this.className == "filelist") {
4070N/A this.setAttribute("style", "display: none;");
4070N/A this.className = "filelist-hidden";
4070N/A } else if (this.className == "filelist-hidden") {
4070N/A this.setAttribute("style", "display: inline;");
4070N/A this.className = "filelist";
if (cr2) { this.disabled = ''}
else {this.disabled = 'true'} }
if (!cr1) { this.disabled = ''}
else {this.disabled = 'true'} }
// start state should ALWAYS be: first row: r1 hidden, r2 checked ; second row: r1 clicked, (r2 hidden)(optionally)
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);
String reviewPage = environment.getReviewPage();
String reviewRegex = environment.getReviewPattern();
if(reviewRegex == null || reviewRegex.equals("")) {
Pattern reviewPattern = Pattern.compile(reviewRegex);
if (!HistoryGuru.getInstance().hasHistory(f)) {
response.sendError(404, "No history");
hist = HistoryGuru.getInstance().getHistory(f);
%>Problem: <%=e.getMessage()%><%
// response.sendError(404, "No history");
%><%@include file="foot.jspf"%><%
<td colspan="5"><span class="pagetitle">History log of <a href="<%= context +"/xref" + path %>"><%=path%></a></span></td>
if (hist.hasFileList()) {
for (HistoryEntry entry : hist.getHistoryEntries()) {
String rev = entry.getRevision();
if (rev == null || rev.length() == 0) {
if (entry.isActive()) {
String rp = Util.URIEncodePath(path);
%><td> <a name="<%=rev%>" href="<%= context +"/xref" + rp + "?r=" + Util.URIEncode(rev) %>"><%=rev%></a> </td><td align="center">
<input type="radio" <% if (count==0) {%>disabled<% } else if (count==1) {%>checked<%} %> name="r1" value="<%=rp%>@<%=rev%>"/>
Date date = entry.getDate();
%><%=df.format(date)%><%
String author = entry.getAuthor();
} else if (userPage != null && ! userPage.equals("")) {
if (bugPage != null && ! bugPage.equals("")){
cout=bugPattern.matcher(cout).replaceAll("<a href=\"" + bugPage + "$1\">$1</a>"); }
if (reviewPage != null && ! reviewPage.equals("")) {
cout=reviewPattern.matcher(cout).replaceAll("<a href=\"" + reviewPage + "$1\">$1</a>"); }
Set<String> files = entry.getFiles();
jfile = ifile.substring(1);
%><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"%>