diff src/org/tmatesoft/hg/internal/RevlogStream.java @ 377:86f049e6bcae

Issue 22: Test for subsequent empty manifest entries case for separate .i and .d repository control files
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 02 Feb 2012 16:16:19 +0100
parents 729ba8f7d14e
children 0ae53c32ecef 5e95b0da26f2
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevlogStream.java	Thu Feb 02 16:10:50 2012 +0100
+++ b/src/org/tmatesoft/hg/internal/RevlogStream.java	Thu Feb 02 16:16:19 2012 +0100
@@ -480,7 +480,7 @@
 						}
 					}
 					// XXX 
-					if (patchToPrevious && !userDataAccess.isEmpty()) {
+					if (patchToPrevious && !userDataAccess.isEmpty() /* Issue 22, empty patch to an empty base revision*/) {
 						// this is a patch
 						patch.read(userDataAccess);
 						userDataAccess.done();