Mercurial > hg4j
diff src/org/tmatesoft/hg/core/HgCloneCommand.java @ 622:4e6179bde4fc
Update to comply with Java 1.5 target
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 20 May 2013 16:56:40 +0200 |
parents | 7c0d2ce340b8 |
children | 6526d8adbc0f |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgCloneCommand.java Sat May 18 22:23:57 2013 +0200 +++ b/src/org/tmatesoft/hg/core/HgCloneCommand.java Mon May 20 16:56:40 2013 +0200 @@ -178,17 +178,12 @@ pathFactory = ctx.getPathFactory(); } - public void initEmptyRepository() throws IOException { + public void initEmptyRepository() throws HgIOException, HgRepositoryNotFoundException { repoInit.initEmptyRepository(hgDir); - try { - assert (repoInit.getRequires() & FNCACHE) != 0; - fncacheFile = new FNCacheFile(Internals.getInstance(new HgLookup(ctx).detect(hgDir))); - } catch (HgRepositoryNotFoundException ex) { - // SHALL NOT HAPPEN provided we initialized empty repository successfully - // TODO perhaps, with WriteDownMate moving to a more appropriate location, - // we could instantiate HgRepository (or Internals) by other means, without exception? - throw new IOException("Can't access fncache for newly created repository", ex); - } + assert (repoInit.getRequires() & FNCACHE) != 0; + // XXX perhaps, with WriteDownMate moving to a more appropriate location, + // we could instantiate HgRepository (or Internals) by other means, without exception? + fncacheFile = new FNCacheFile(Internals.getInstance(new HgLookup(ctx).detect(hgDir))); } public void complete() throws IOException {