diff src/org/tmatesoft/hg/core/HgCloneCommand.java @ 274:9fb50c04f03c

Use Nodeid.isNull check instead of NULL.equals
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 25 Aug 2011 03:57:39 +0200
parents 883f1efbcf27
children a415fe296a50
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgCloneCommand.java	Thu Aug 25 03:56:27 2011 +0200
+++ b/src/org/tmatesoft/hg/core/HgCloneCommand.java	Thu Aug 25 03:57:39 2011 +0200
@@ -232,7 +232,7 @@
 		}
 
 		private int knownRevision(Nodeid p) {
-			if (NULL.equals(p)) {
+			if (p.isNull()) {
 				return -1;
 			} else {
 				for (int i = revisionSequence.size() - 1; i >= 0; i--) {
@@ -250,7 +250,7 @@
 				boolean writeComplete = false;
 				Nodeid p1 = ge.firstParent();
 				Nodeid p2 = ge.secondParent();
-				if (NULL.equals(p1) && NULL.equals(p2) /* or forced flag, does REVIDX_PUNCHED_FLAG indicate that? */) {
+				if (p1.isNull() && p2.isNull() /* or forced flag, does REVIDX_PUNCHED_FLAG indicate that? */) {
 					prevRevContent = new ByteArrayDataAccess(new byte[0]);
 					writeComplete = true;
 				}