comparison src/org/tmatesoft/hg/repo/HgParentChildMap.java @ 650:3b275cc2d2aa

Push: phase4 - settle local and remote phases, push updated phases regardless of server publishing state, do not push secret changesets
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 28 Jun 2013 19:27:26 +0200
parents 3b7d51ed4c65
children cd77bf51b562
comparison
equal deleted inserted replaced
649:e79cf9a8130b 650:3b275cc2d2aa
178 // XXX alternative (and perhaps more reliable) approach would be to make a copy of allNodes and remove 178 // XXX alternative (and perhaps more reliable) approach would be to make a copy of allNodes and remove
179 // nodes, their parents and so on. 179 // nodes, their parents and so on.
180 180
181 // @return ordered collection of all children rooted at supplied nodes. Nodes shall not be descendants of each other! 181 // @return ordered collection of all children rooted at supplied nodes. Nodes shall not be descendants of each other!
182 // Nodeids shall belong to this revlog 182 // Nodeids shall belong to this revlog
183 public List<Nodeid> childrenOf(List<Nodeid> roots) { 183 public List<Nodeid> childrenOf(Collection<Nodeid> roots) {
184 if (roots.isEmpty()) { 184 if (roots.isEmpty()) {
185 return Collections.emptyList(); 185 return Collections.emptyList();
186 } 186 }
187 HashSet<Nodeid> parents = new HashSet<Nodeid>(); 187 HashSet<Nodeid> parents = new HashSet<Nodeid>();
188 LinkedList<Nodeid> result = new LinkedList<Nodeid>(); 188 LinkedList<Nodeid> result = new LinkedList<Nodeid>();