Mercurial > jhg
diff src/org/tmatesoft/hg/core/HgPullCommand.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 | d25f0324a27a |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgPullCommand.java Wed Jul 10 16:41:49 2013 +0200 +++ b/src/org/tmatesoft/hg/core/HgPullCommand.java Wed Jul 10 19:33:51 2013 +0200 @@ -16,7 +16,6 @@ */ package org.tmatesoft.hg.core; -import java.io.IOException; import java.util.Collection; import java.util.Collections; import java.util.List; @@ -39,7 +38,9 @@ import org.tmatesoft.hg.util.ProgressSupport; /** + * 'hg pull <remote>' counterpart, get remote changes to local repository * + * @since 1.2 * @author Artem Tikhomirov * @author TMate Software Ltd. */ @@ -85,9 +86,9 @@ } catch (HgRuntimeException ex) { tr.rollback(); throw ex; - } catch (IOException ex) { + } catch (HgIOException ex) { tr.rollback(); - throw new HgIOException(ex.getMessage(), ex, null); // FIXME throw HgIOException right away + throw ex; } catch (RuntimeException ex) { tr.rollback(); throw ex;