diff src/org/tmatesoft/hg/core/Cset.java @ 125:26ad21b250e4

Explicit op to tell merge revisions
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 15 Feb 2011 06:40:36 +0100
parents cea84c5995e6
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/Cset.java	Tue Feb 15 06:30:05 2011 +0100
+++ b/src/org/tmatesoft/hg/core/Cset.java	Tue Feb 15 06:40:36 2011 +0100
@@ -117,7 +117,9 @@
 		return deletedFiles;
 	}
 
-	// XXX do I need boolean isMergeRevision()?
+	public boolean isMerge() {
+		return !Nodeid.NULL.equals(getSecondParentRevision());
+	}
 	
 	public Nodeid getFirstParentRevision() {
 		// XXX may read once for both p1 and p2