diff src/org/tmatesoft/hg/core/HgFileRevision.java @ 237:6e1373b54e9b

Allow access to working copy content through HgDataFile. Give access to repository's working dir
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 10 Jun 2011 04:35:21 +0200
parents 1792b37650f2
children 4c3b9f679412
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgFileRevision.java	Thu Jun 09 06:13:43 2011 +0200
+++ b/src/org/tmatesoft/hg/core/HgFileRevision.java	Fri Jun 10 04:35:21 2011 +0200
@@ -16,8 +16,6 @@
  */
 package org.tmatesoft.hg.core;
 
-import java.io.IOException;
-
 import org.tmatesoft.hg.repo.HgDataFile;
 import org.tmatesoft.hg.repo.HgRepository;
 import org.tmatesoft.hg.util.ByteChannel;
@@ -51,7 +49,7 @@
 	public Nodeid getRevision() {
 		return revision;
 	}
-	public void putContentTo(ByteChannel sink) throws HgDataStreamException, IOException, CancelledException {
+	public void putContentTo(ByteChannel sink) throws HgDataStreamException, CancelledException {
 		HgDataFile fn = repo.getFileNode(path);
 		int localRevision = fn.getLocalRevision(revision);
 		fn.contentWithFilters(localRevision, sink);