diff src/org/tmatesoft/hg/internal/AddRevInspector.java @ 664:ae2d439fbed3

Utilize transaction when writing fncache. Better HgIOException
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 10 Jul 2013 19:33:51 +0200
parents 46b56864b483
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/AddRevInspector.java	Wed Jul 10 16:41:49 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/AddRevInspector.java	Wed Jul 10 19:33:51 2013 +0200
@@ -16,7 +16,6 @@
  */
 package org.tmatesoft.hg.internal;
 
-import java.io.IOException;
 import java.util.HashMap;
 import java.util.Set;
 
@@ -50,7 +49,7 @@
 	public AddRevInspector(Internals implRepo, Transaction transaction) {
 		repo = implRepo;
 		tr = transaction;
-		fncache = new FNCacheFile.Mediator(implRepo);
+		fncache = new FNCacheFile.Mediator(implRepo, transaction);
 	}
 
 	public void changelogStart() throws HgRuntimeException {
@@ -114,7 +113,7 @@
 		return new RevisionSet(added);
 	}
 	
-	public void done() throws IOException {
+	public void done() throws HgIOException {
 		fncache.complete();
 	}