comparison src/org/tmatesoft/hg/core/HgOutgoingCommand.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 31a89587eb04
children 2f9ed6bcefa2
comparison
equal deleted inserted replaced
431:12f668401613 432:1fc0da631200
24 import org.tmatesoft.hg.repo.HgChangelog; 24 import org.tmatesoft.hg.repo.HgChangelog;
25 import org.tmatesoft.hg.repo.HgInvalidControlFileException; 25 import org.tmatesoft.hg.repo.HgInvalidControlFileException;
26 import org.tmatesoft.hg.repo.HgRemoteRepository; 26 import org.tmatesoft.hg.repo.HgRemoteRepository;
27 import org.tmatesoft.hg.repo.HgRepository; 27 import org.tmatesoft.hg.repo.HgRepository;
28 import org.tmatesoft.hg.repo.HgRuntimeException; 28 import org.tmatesoft.hg.repo.HgRuntimeException;
29 import org.tmatesoft.hg.repo.HgParentChildMap;
29 import org.tmatesoft.hg.util.CancelSupport; 30 import org.tmatesoft.hg.util.CancelSupport;
30 import org.tmatesoft.hg.util.CancelledException; 31 import org.tmatesoft.hg.util.CancelledException;
31 import org.tmatesoft.hg.util.ProgressSupport; 32 import org.tmatesoft.hg.util.ProgressSupport;
32 33
33 /** 34 /**
41 private final HgRepository localRepo; 42 private final HgRepository localRepo;
42 private HgRemoteRepository remoteRepo; 43 private HgRemoteRepository remoteRepo;
43 @SuppressWarnings("unused") 44 @SuppressWarnings("unused")
44 private boolean includeSubrepo; 45 private boolean includeSubrepo;
45 private RepositoryComparator comparator; 46 private RepositoryComparator comparator;
46 private HgChangelog.ParentWalker parentHelper; 47 private HgParentChildMap<HgChangelog> parentHelper;
47 private Set<String> branches; 48 private Set<String> branches;
48 49
49 public HgOutgoingCommand(HgRepository hgRepo) { 50 public HgOutgoingCommand(HgRepository hgRepo) {
50 localRepo = hgRepo; 51 localRepo = hgRepo;
51 } 52 }
148 comparator.compare(ps, cs); 149 comparator.compare(ps, cs);
149 } 150 }
150 return comparator; 151 return comparator;
151 } 152 }
152 153
153 private HgChangelog.ParentWalker getParentHelper() throws HgInvalidControlFileException { 154 private HgParentChildMap<HgChangelog> getParentHelper() throws HgInvalidControlFileException {
154 if (parentHelper == null) { 155 if (parentHelper == null) {
155 parentHelper = localRepo.getChangelog().new ParentWalker(); 156 parentHelper = new HgParentChildMap<HgChangelog>(localRepo.getChangelog());
156 parentHelper.init(); 157 parentHelper.init();
157 } 158 }
158 return parentHelper; 159 return parentHelper;
159 } 160 }
160 161