diff 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
line wrap: on
line diff
--- a/src/com/tmate/hgkit/ll/Revlog.java	Tue Jan 11 04:49:06 2011 +0100
+++ b/src/com/tmate/hgkit/ll/Revlog.java	Wed Jan 12 00:30:55 2011 +0100
@@ -97,6 +97,11 @@
 		public Set<Nodeid> allNodes() {
 			return Collections.unmodifiableSet(allNodes);
 		}
+		
+		// FIXME need to decide whether Nodeid(00 * 20) is always known or not
+		public boolean knownNode(Nodeid nid) {
+			return allNodes.contains(nid);
+		}
 
 		// null if none
 		public Nodeid firstParent(Nodeid nid) {