comparison src/org/tmatesoft/hg/internal/RepositoryComparator.java @ 354:5f9073eabf06

Propagate errors with exceptions up to a end client
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 01 Dec 2011 05:21:40 +0100
parents 981f9f50bb6c
children 2fadf8695f8a
comparison
equal deleted inserted replaced
353:0f3687e79f5a 354:5f9073eabf06
28 import java.util.Map; 28 import java.util.Map;
29 import java.util.Map.Entry; 29 import java.util.Map.Entry;
30 import java.util.Set; 30 import java.util.Set;
31 31
32 import org.tmatesoft.hg.core.HgBadStateException; 32 import org.tmatesoft.hg.core.HgBadStateException;
33 import org.tmatesoft.hg.core.HgInvalidControlFileException;
33 import org.tmatesoft.hg.core.HgRemoteConnectionException; 34 import org.tmatesoft.hg.core.HgRemoteConnectionException;
34 import org.tmatesoft.hg.core.Nodeid; 35 import org.tmatesoft.hg.core.Nodeid;
35 import org.tmatesoft.hg.repo.HgChangelog; 36 import org.tmatesoft.hg.repo.HgChangelog;
36 import org.tmatesoft.hg.repo.HgRemoteRepository; 37 import org.tmatesoft.hg.repo.HgRemoteRepository;
37 import org.tmatesoft.hg.repo.HgRemoteRepository.Range; 38 import org.tmatesoft.hg.repo.HgRemoteRepository.Range;
88 /** 89 /**
89 * Similar to @link {@link #getLocalOnlyRevisions()}, use this one if you need access to changelog entry content, not 90 * Similar to @link {@link #getLocalOnlyRevisions()}, use this one if you need access to changelog entry content, not
90 * only its revision number. 91 * only its revision number.
91 * @param inspector delegate to analyze changesets, shall not be <code>null</code> 92 * @param inspector delegate to analyze changesets, shall not be <code>null</code>
92 */ 93 */
93 public void visitLocalOnlyRevisions(HgChangelog.Inspector inspector) { 94 public void visitLocalOnlyRevisions(HgChangelog.Inspector inspector) throws HgInvalidControlFileException {
94 if (inspector == null) { 95 if (inspector == null) {
95 throw new IllegalArgumentException(); 96 throw new IllegalArgumentException();
96 } 97 }
97 // one can use localRepo.childrenOf(getCommon()) and then iterate over nodeids, but there seems to be 98 // one can use localRepo.childrenOf(getCommon()) and then iterate over nodeids, but there seems to be
98 // another approach to get all changes after common: 99 // another approach to get all changes after common: