Author: adamw
Date: 2005-10-04 14:58:53 -0400 (Tue, 04 Oct 2005)
New Revision: 1272
Modified:
trunk/forge/portal-extensions/shotoku/shotoku-svn-service/src/java/org/jboss/shotoku/svn/service/SvnRepository.java
trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHeadNode.java
trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHistoricNode.java
trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNode.java
Log:
Fix that will make tomek's code compile?
Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHeadNode.java
===================================================================
--- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHeadNode.java 2005-10-04 18:02:32 UTC (rev 1271)
+++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHeadNode.java 2005-10-04 18:58:53 UTC (rev 1272)
@@ -12,7 +12,6 @@
import java.nio.charset.Charset;
import org.jboss.shotoku.Directory;
-import org.jboss.shotoku.History;
import org.jboss.shotoku.exceptions.RepositoryException;
public class SvnHeadNode extends SvnNode {
@@ -46,10 +45,6 @@
newContent = content;
}
- public History getHistory() {
- throw new RuntimeException("Operation not yet implemented");
- }
-
public int getRevisionNumber() {
throw new RuntimeException("Operation not yet implemented");
}
Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHistoricNode.java
===================================================================
--- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHistoricNode.java 2005-10-04 18:02:32 UTC (rev 1271)
+++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHistoricNode.java 2005-10-04 18:58:53 UTC (rev 1272)
@@ -2,26 +2,37 @@
import java.io.File;
import java.io.InputStream;
+import java.util.Date;
+import java.util.Map;
import org.jboss.shotoku.Directory;
-import org.jboss.shotoku.History;
import org.jboss.shotoku.exceptions.NodeReadOnly;
public class SvnHistoricNode extends SvnNode {
- public SvnHistoricNode(String id, String fullPath, File file, String name) {
+ private String logMessage;
+ private Date commitDate;
+ private long revisionAbsolute;
+ private int revisionRelative;
+ private Map<String, String> properties;
+
+ public SvnHistoricNode(String id, String fullPath, File file, String name,
+ Date commitDate, String logMessage, long revisionAbsolute,
+ int revisionRelative, Map<String, String> properties) {
super(id, fullPath, file, name);
+
+ this.logMessage = logMessage;
+ this.commitDate = commitDate;
+ this.revisionAbsolute = revisionAbsolute;
+ this.revisionRelative = revisionRelative;
+ this.properties = properties;
}
public String getContent() {
throw new RuntimeException("Operation not yet implemented");
}
- public History getHistory() {
- throw new RuntimeException("Operation not yet implemented");
- }
-
public int getRevisionNumber() {
- throw new RuntimeException("Operation not yet implemented");
+ return revisionRelative;
}
public InputStream getContentInputStream() {
@@ -33,11 +44,11 @@
}
public long getLastModfication() {
- throw new RuntimeException("Operation not yet implemented");
+ return commitDate.getTime();
}
- public String getProperty(String arg0) {
- throw new RuntimeException("Operation not yet implemented");
+ public String getProperty(String name) {
+ return properties.get(name);
}
public Directory getParent() {
@@ -45,6 +56,10 @@
}
public String getLogMessage() {
+ return logMessage;
+ }
+
+ public void copyToFile(String arg0) {
throw new RuntimeException("Operation not yet implemented");
}
Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNode.java
===================================================================
--- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNode.java 2005-10-04 18:02:32 UTC (rev 1271)
+++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNode.java 2005-10-04 18:58:53 UTC (rev 1272)
@@ -2,6 +2,7 @@
import java.io.File;
+import org.jboss.shotoku.History;
import org.jboss.shotoku.Node;
public abstract class SvnNode extends AbstractSvnResource implements Node {
@@ -9,7 +10,7 @@
super(id, fullPath, file, name);
}
- public void copyToFile(String arg0) {
+ public History getHistory() {
throw new RuntimeException("Operation not yet implemented");
}
}
Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn-service/src/java/org/jboss/shotoku/svn/service/SvnRepository.java
===================================================================
--- trunk/forge/portal-extensions/shotoku/shotoku-svn-service/src/java/org/jboss/shotoku/svn/service/SvnRepository.java 2005-10-04 18:02:32 UTC (rev 1271)
+++ trunk/forge/portal-extensions/shotoku/shotoku-svn-service/src/java/org/jboss/shotoku/svn/service/SvnRepository.java 2005-10-04 18:58:53 UTC (rev 1272)
@@ -217,8 +217,7 @@
SVNRevision.create(0), SVNRevision.HEAD, false,
false, 999999,
new ISVNLogEntryHandler() {
- public void handleLogEntry(SVNLogEntry entry)
- throws SVNException {
+ public void handleLogEntry(SVNLogEntry entry) {
ret.add(new RevisionInfo(entry.getDate(),
entry.getAuthor(), entry.getRevision()));
}
|