Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/RepositoryComparator.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 | 1fc0da631200 |
children | 14dac192aa26 |
comparison
equal
deleted
inserted
replaced
627:5153eb73b18d | 628:6526d8adbc0f |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011-2012 TMate Software Ltd | 2 * Copyright (c) 2011-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 * |
31 import java.util.Set; | 31 import java.util.Set; |
32 | 32 |
33 import org.tmatesoft.hg.core.HgRemoteConnectionException; | 33 import org.tmatesoft.hg.core.HgRemoteConnectionException; |
34 import org.tmatesoft.hg.core.Nodeid; | 34 import org.tmatesoft.hg.core.Nodeid; |
35 import org.tmatesoft.hg.repo.HgChangelog; | 35 import org.tmatesoft.hg.repo.HgChangelog; |
36 import org.tmatesoft.hg.repo.HgInvalidControlFileException; | |
37 import org.tmatesoft.hg.repo.HgInvalidStateException; | 36 import org.tmatesoft.hg.repo.HgInvalidStateException; |
37 import org.tmatesoft.hg.repo.HgParentChildMap; | |
38 import org.tmatesoft.hg.repo.HgRemoteRepository; | 38 import org.tmatesoft.hg.repo.HgRemoteRepository; |
39 import org.tmatesoft.hg.repo.HgRemoteRepository.Range; | 39 import org.tmatesoft.hg.repo.HgRemoteRepository.Range; |
40 import org.tmatesoft.hg.repo.HgRemoteRepository.RemoteBranch; | 40 import org.tmatesoft.hg.repo.HgRemoteRepository.RemoteBranch; |
41 import org.tmatesoft.hg.repo.HgParentChildMap; | 41 import org.tmatesoft.hg.repo.HgRuntimeException; |
42 import org.tmatesoft.hg.util.CancelSupport; | 42 import org.tmatesoft.hg.util.CancelSupport; |
43 import org.tmatesoft.hg.util.CancelledException; | 43 import org.tmatesoft.hg.util.CancelledException; |
44 import org.tmatesoft.hg.util.ProgressSupport; | 44 import org.tmatesoft.hg.util.ProgressSupport; |
45 | 45 |
46 /** | 46 /** |
91 /** | 91 /** |
92 * Similar to @link {@link #getLocalOnlyRevisions()}, use this one if you need access to changelog entry content, not | 92 * Similar to @link {@link #getLocalOnlyRevisions()}, use this one if you need access to changelog entry content, not |
93 * only its revision number. | 93 * only its revision number. |
94 * @param inspector delegate to analyze changesets, shall not be <code>null</code> | 94 * @param inspector delegate to analyze changesets, shall not be <code>null</code> |
95 */ | 95 */ |
96 public void visitLocalOnlyRevisions(HgChangelog.Inspector inspector) throws HgInvalidControlFileException { | 96 public void visitLocalOnlyRevisions(HgChangelog.Inspector inspector) throws HgRuntimeException { |
97 if (inspector == null) { | 97 if (inspector == null) { |
98 throw new IllegalArgumentException(); | 98 throw new IllegalArgumentException(); |
99 } | 99 } |
100 // one can use localRepo.childrenOf(getCommon()) and then iterate over nodeids, but there seems to be | 100 // one can use localRepo.childrenOf(getCommon()) and then iterate over nodeids, but there seems to be |
101 // another approach to get all changes after common: | 101 // another approach to get all changes after common: |