diff src/org/tmatesoft/hg/internal/IntMap.java @ 672:d2552e6a5af6

Effective update of HgParentChildMap when repository got few revisions added
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 12 Jul 2013 16:29:06 +0200
parents a937e63b6e02
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/IntMap.java	Fri Jul 12 15:29:37 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/IntMap.java	Fri Jul 12 16:29:06 2013 +0200
@@ -218,6 +218,12 @@
 		return map;
 	}
 	
+	public int[] keys() {
+		int[] rv = new int[size];
+		System.arraycopy(keys, 0, rv, 0, size);
+		return rv;
+	}
+	
 	public Collection<V> values() {
 		@SuppressWarnings("unchecked")
 		V[] rv = (V[]) new Object[size];