comparison src/org/tmatesoft/hg/internal/RepositoryComparator.java @ 432:1fc0da631200

Revlog.ParentWalker helper class got promoted as TLC, renamed to HgParentChildMap
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 30 Mar 2012 16:22:51 +0200
parents 48f993aa2f41
children 6526d8adbc0f
comparison
equal deleted inserted replaced
431:12f668401613 432:1fc0da631200
36 import org.tmatesoft.hg.repo.HgInvalidControlFileException; 36 import org.tmatesoft.hg.repo.HgInvalidControlFileException;
37 import org.tmatesoft.hg.repo.HgInvalidStateException; 37 import org.tmatesoft.hg.repo.HgInvalidStateException;
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.util.CancelSupport; 42 import org.tmatesoft.hg.util.CancelSupport;
42 import org.tmatesoft.hg.util.CancelledException; 43 import org.tmatesoft.hg.util.CancelledException;
43 import org.tmatesoft.hg.util.ProgressSupport; 44 import org.tmatesoft.hg.util.ProgressSupport;
44 45
45 /** 46 /**
48 * @author TMate Software Ltd. 49 * @author TMate Software Ltd.
49 */ 50 */
50 public class RepositoryComparator { 51 public class RepositoryComparator {
51 52
52 private final boolean debug = Boolean.parseBoolean(System.getProperty("hg4j.remote.debug")); 53 private final boolean debug = Boolean.parseBoolean(System.getProperty("hg4j.remote.debug"));
53 private final HgChangelog.ParentWalker localRepo; 54 private final HgParentChildMap<HgChangelog> localRepo;
54 private final HgRemoteRepository remoteRepo; 55 private final HgRemoteRepository remoteRepo;
55 private List<Nodeid> common; 56 private List<Nodeid> common;
56 57
57 public RepositoryComparator(HgChangelog.ParentWalker pwLocal, HgRemoteRepository hgRemote) { 58 public RepositoryComparator(HgParentChildMap<HgChangelog> pwLocal, HgRemoteRepository hgRemote) {
58 localRepo = pwLocal; 59 localRepo = pwLocal;
59 remoteRepo = hgRemote; 60 remoteRepo = hgRemote;
60 } 61 }
61 62
62 public RepositoryComparator compare(ProgressSupport progressSupport, CancelSupport cancelSupport) throws HgRemoteConnectionException, CancelledException { 63 public RepositoryComparator compare(ProgressSupport progressSupport, CancelSupport cancelSupport) throws HgRemoteConnectionException, CancelledException {