Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/RevisionSet.java @ 651:6e98d34eaca8
Push: tests (push to empty, push changes, respect secret)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 01 Jul 2013 21:19:53 +0200 |
parents | 3b275cc2d2aa |
children | cd77bf51b562 |
comparison
equal
deleted
inserted
replaced
650:3b275cc2d2aa | 651:6e98d34eaca8 |
---|---|
90 } | 90 } |
91 return copy.size() == elements.size() ? this : new RevisionSet(copy); | 91 return copy.size() == elements.size() ? this : new RevisionSet(copy); |
92 } | 92 } |
93 | 93 |
94 /** | 94 /** |
95 * Any ancestor of an element from the supplied children set found in this one. | 95 * Any ancestor of an element from the supplied child set found in this one. |
96 * Elements of the supplied child set are not part of return value. | |
96 */ | 97 */ |
97 public RevisionSet ancestors(RevisionSet children, HgParentChildMap<HgChangelog> parentHelper) { | 98 public RevisionSet ancestors(RevisionSet children, HgParentChildMap<HgChangelog> parentHelper) { |
98 if (isEmpty()) { | 99 if (isEmpty()) { |
99 return this; | 100 return this; |
100 } | 101 } |
188 | 189 |
189 public boolean isEmpty() { | 190 public boolean isEmpty() { |
190 return elements.isEmpty(); | 191 return elements.isEmpty(); |
191 } | 192 } |
192 | 193 |
194 public int size() { | |
195 return elements.size(); | |
196 } | |
193 | 197 |
194 public List<Nodeid> asList() { | 198 public List<Nodeid> asList() { |
195 return new ArrayList<Nodeid>(elements); | 199 return new ArrayList<Nodeid>(elements); |
196 } | 200 } |
197 | 201 |