diff src/org/tmatesoft/hg/internal/RevlogStream.java @ 617:65c01508f002

Rollback support for commands that modify repository. Strategy to keep complete copy of a file being changed
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 15 May 2013 20:10:09 +0200
parents e1b29756f901
children 99ad1e3a4e4d
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevlogStream.java	Tue May 14 17:31:35 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/RevlogStream.java	Wed May 15 20:10:09 2013 +0200
@@ -29,6 +29,7 @@
 import java.util.List;
 import java.util.zip.Inflater;
 
+import org.tmatesoft.hg.core.HgIOException;
 import org.tmatesoft.hg.core.Nodeid;
 import org.tmatesoft.hg.repo.HgInternals;
 import org.tmatesoft.hg.repo.HgInvalidControlFileException;
@@ -101,14 +102,14 @@
 		return dataAccess.createReader(getDataFile(), false);
 	}
 	
-	/*package*/ DataSerializer getIndexStreamWriter() {
+	/*package*/ DataSerializer getIndexStreamWriter(Transaction tr) throws HgIOException {
 		DataAccessProvider dataAccess = repo.getDataAccess();
-		return dataAccess.createWriter(indexFile, true);
+		return dataAccess.createWriter(tr, indexFile, true);
 	}
 	
-	/*package*/ DataSerializer getDataStreamWriter() {
+	/*package*/ DataSerializer getDataStreamWriter(Transaction tr) throws HgIOException {
 		DataAccessProvider dataAccess = repo.getDataAccess();
-		return dataAccess.createWriter(getDataFile(), true);
+		return dataAccess.createWriter(tr, getDataFile(), true);
 	}
 	
 	/**