Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
374:c7a513d8ce20 | 375:729ba8f7d14e |
---|---|
478 // but I don't see reason not to return data as is | 478 // but I don't see reason not to return data as is |
479 userDataAccess = new FilterDataAccess(streamDataAccess, streamOffset, compressedLen); | 479 userDataAccess = new FilterDataAccess(streamDataAccess, streamOffset, compressedLen); |
480 } | 480 } |
481 } | 481 } |
482 // XXX | 482 // XXX |
483 if (patchToPrevious) { | 483 if (patchToPrevious && !userDataAccess.isEmpty()) { |
484 // this is a patch | 484 // this is a patch |
485 patch.read(userDataAccess); | 485 patch.read(userDataAccess); |
486 userDataAccess.done(); | 486 userDataAccess.done(); |
487 // | 487 // |
488 // it shall be reset at the end of prev iteration, when it got assigned from userDataAccess | 488 // it shall be reset at the end of prev iteration, when it got assigned from userDataAccess |