diff src/org/tmatesoft/hg/internal/CommitFacility.java @ 628:6526d8adbc0f

Explicit HgRuntimeException to facilitate easy switch from runtime to checked exceptions
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 22 May 2013 15:52:31 +0200
parents 4e6179bde4fc
children ffce73efa2c2
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/CommitFacility.java	Tue May 21 20:17:33 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/CommitFacility.java	Wed May 22 15:52:31 2013 +0200
@@ -40,6 +40,7 @@
 import org.tmatesoft.hg.internal.DataSerializer.DataSource;
 import org.tmatesoft.hg.repo.HgChangelog;
 import org.tmatesoft.hg.repo.HgDataFile;
+import org.tmatesoft.hg.repo.HgRuntimeException;
 import org.tmatesoft.hg.util.Pair;
 import org.tmatesoft.hg.util.Path;
 
@@ -97,7 +98,7 @@
 	
 	// this method doesn't roll transaction back in case of failure, caller's responsibility
 	// this method expects repository to be locked, if needed
-	public Nodeid commit(String message, Transaction transaction) throws HgIOException, HgRepositoryLockException {
+	public Nodeid commit(String message, Transaction transaction) throws HgIOException, HgRepositoryLockException, HgRuntimeException {
 		final HgChangelog clog = repo.getRepo().getChangelog();
 		final int clogRevisionIndex = clog.getRevisionCount();
 		ManifestRevision c1Manifest = new ManifestRevision(null, null);