diff src/org/tmatesoft/hg/internal/Patch.java @ 618:7c0d2ce340b8

Refactor approach how content finds it way down to a commit revision
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 16 May 2013 19:46:13 +0200
parents a52f4cc56f9c
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/Patch.java	Wed May 15 20:10:09 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/Patch.java	Thu May 16 19:46:13 2013 +0200
@@ -20,6 +20,8 @@
 import java.util.ArrayList;
 import java.util.Formatter;
 
+import org.tmatesoft.hg.core.HgIOException;
+
 /**
  * @see http://mercurial.selenic.com/wiki/BundleFormat
  * in Changelog group description
@@ -177,7 +179,7 @@
 		return prefix + totalDataLen;
 	}
 	
-	/*package-local*/ void serialize(DataSerializer out) throws IOException {
+	/*package-local*/ void serialize(DataSerializer out) throws HgIOException {
 		for (int i = 0, x = data.size(); i < x; i++) {
 			final int start = starts.get(i);
 			final int end = ends.get(i);
@@ -462,7 +464,7 @@
 
 	public class PatchDataSource implements DataSerializer.DataSource {
 
-		public void serialize(DataSerializer out) throws IOException {
+		public void serialize(DataSerializer out) throws HgIOException {
 			Patch.this.serialize(out);
 		}