diff src/org/tmatesoft/hg/internal/RevisionSet.java @ 653:629a7370554c

Tests for recent changes in HgParentChildMap and RepositoryComparator (outgoing to respect drafts and Issue 47)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 03 Jul 2013 14:38:30 +0200
parents cd77bf51b562
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevisionSet.java	Tue Jul 02 23:21:16 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/RevisionSet.java	Wed Jul 03 14:38:30 2013 +0200
@@ -19,6 +19,7 @@
 import static org.tmatesoft.hg.repo.HgRepository.NO_REVISION;
 
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashSet;
@@ -41,6 +42,10 @@
 	
 	private final Set<Nodeid> elements;
 	
+	public RevisionSet(Nodeid... revisions) {
+		this(revisions == null ? null : Arrays.asList(revisions));
+	}
+	
 	public RevisionSet(Collection<Nodeid> revisions) {
 		this(revisions == null ? new HashSet<Nodeid>() : new HashSet<Nodeid>(revisions));
 	}