diff src/org/tmatesoft/hg/internal/RevlogStream.java @ 375:729ba8f7d14e

Issue 22: UnsupportedOperationException when all files are deleted in a branch
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 23 Jan 2012 16:51:34 +0100
parents 2fadf8695f8a
children 86f049e6bcae
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevlogStream.java	Tue Jan 10 01:20:47 2012 +0400
+++ b/src/org/tmatesoft/hg/internal/RevlogStream.java	Mon Jan 23 16:51:34 2012 +0100
@@ -480,7 +480,7 @@
 						}
 					}
 					// XXX 
-					if (patchToPrevious) {
+					if (patchToPrevious && !userDataAccess.isEmpty()) {
 						// this is a patch
 						patch.read(userDataAccess);
 						userDataAccess.done();