Mercurial > jhg
comparison src/com/tmate/hgkit/ll/Revlog.java @ 31:346b66add79d
Basic lookup for incoming changes
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 12 Jan 2011 00:30:55 +0100 |
parents | 6cce719bbb62 |
children | e45e75e22523 |
comparison
equal
deleted
inserted
replaced
30:de7217a0aa4d | 31:346b66add79d |
---|---|
95 } | 95 } |
96 | 96 |
97 public Set<Nodeid> allNodes() { | 97 public Set<Nodeid> allNodes() { |
98 return Collections.unmodifiableSet(allNodes); | 98 return Collections.unmodifiableSet(allNodes); |
99 } | 99 } |
100 | |
101 // FIXME need to decide whether Nodeid(00 * 20) is always known or not | |
102 public boolean knownNode(Nodeid nid) { | |
103 return allNodes.contains(nid); | |
104 } | |
100 | 105 |
101 // null if none | 106 // null if none |
102 public Nodeid firstParent(Nodeid nid) { | 107 public Nodeid firstParent(Nodeid nid) { |
103 return firstParent.get(nid); | 108 return firstParent.get(nid); |
104 } | 109 } |