diff src/org/tmatesoft/hg/repo/Revlog.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 0e01f9182e16
children 74e7493a042a
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/Revlog.java	Thu Aug 25 03:56:27 2011 +0200
+++ b/src/org/tmatesoft/hg/repo/Revlog.java	Thu Aug 25 03:57:39 2011 +0200
@@ -16,7 +16,6 @@
  */
 package org.tmatesoft.hg.repo;
 
-import static org.tmatesoft.hg.core.Nodeid.NULL;
 import static org.tmatesoft.hg.repo.HgRepository.BAD_REVISION;
 import static org.tmatesoft.hg.repo.HgRepository.TIP;
 
@@ -439,7 +438,7 @@
 			return sequential[localRevision];
 		}
 		public int localRevision(Nodeid revision) {
-			if (revision == null || NULL.equals(revision)) {
+			if (revision == null || revision.isNull()) {
 				return BAD_REVISION;
 			}
 			int x = Arrays.binarySearch(sorted, revision);