comparison 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
comparison
equal deleted inserted replaced
376:d45ad07dc94c 377:86f049e6bcae
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 && !userDataAccess.isEmpty()) { 483 if (patchToPrevious && !userDataAccess.isEmpty() /* Issue 22, empty patch to an empty base revision*/) {
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