diff src/org/tmatesoft/hg/internal/RevlogStream.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 bcbcc318f250
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevlogStream.java	Wed Jul 10 16:41:49 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/RevlogStream.java	Wed Jul 10 19:33:51 2013 +0200
@@ -136,6 +136,10 @@
 		return ex.setFile(indexFile);
 	}
 
+	public HgIOException initWithIndexFile(HgIOException ex) {
+		return ex.setFile(indexFile);
+	}
+
 	// initialize exception with the file where revlog data comes from
 	public HgInvalidControlFileException initWithDataFile(HgInvalidControlFileException ex) {
 		// exceptions are usually raised after read attepmt, hence inline shall be initialized