Mercurial > jhg
changeset 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 | c7a513d8ce20 |
children | d45ad07dc94c |
files | src/org/tmatesoft/hg/internal/RevlogStream.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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();