comparison cmdline/org/tmatesoft/hg/console/Log.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 5dcb4581c8ef
children
comparison
equal deleted inserted replaced
627:5153eb73b18d 628:6526d8adbc0f
1 /* 1 /*
2 * Copyright (c) 2010-2012 TMate Software Ltd 2 * Copyright (c) 2010-2013 TMate Software Ltd
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License. 6 * the Free Software Foundation; version 2 of the License.
7 * 7 *
24 import org.tmatesoft.hg.core.HgFileRenameHandlerMixin; 24 import org.tmatesoft.hg.core.HgFileRenameHandlerMixin;
25 import org.tmatesoft.hg.core.HgFileRevision; 25 import org.tmatesoft.hg.core.HgFileRevision;
26 import org.tmatesoft.hg.core.HgLogCommand; 26 import org.tmatesoft.hg.core.HgLogCommand;
27 import org.tmatesoft.hg.repo.HgDataFile; 27 import org.tmatesoft.hg.repo.HgDataFile;
28 import org.tmatesoft.hg.repo.HgRepository; 28 import org.tmatesoft.hg.repo.HgRepository;
29 import org.tmatesoft.hg.repo.HgRuntimeException;
29 import org.tmatesoft.hg.util.CancelSupport; 30 import org.tmatesoft.hg.util.CancelSupport;
30 import org.tmatesoft.hg.util.ProgressSupport; 31 import org.tmatesoft.hg.util.ProgressSupport;
31 32
32 33
33 /** 34 /**
122 } 123 }
123 124
124 private static final class Dump extends ChangesetDumpHandler implements HgChangesetHandler.WithCopyHistory { 125 private static final class Dump extends ChangesetDumpHandler implements HgChangesetHandler.WithCopyHistory {
125 private final RenameDumpHandler renameHandlerDelegate; 126 private final RenameDumpHandler renameHandlerDelegate;
126 127
127 public Dump(HgRepository hgRepo) { 128 public Dump(HgRepository hgRepo) throws HgRuntimeException {
128 super(hgRepo); 129 super(hgRepo);
129 renameHandlerDelegate = new RenameDumpHandler(); 130 renameHandlerDelegate = new RenameDumpHandler();
130 } 131 }
131 132
132 public void copy(HgFileRevision from, HgFileRevision to) { 133 public void copy(HgFileRevision from, HgFileRevision to) {