comparison src/org/tmatesoft/hg/internal/Patch.java @ 420:6c22bdc0bdfd

Respect long offsets in revlogs
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 22 Mar 2012 22:56:01 +0100
parents 7f136a3fa671
children 0f6fa88e2162
comparison
equal deleted inserted replaced
419:7f136a3fa671 420:6c22bdc0bdfd
118 destIndex += d.length; 118 destIndex += d.length;
119 prevEnd = ends.get(i); 119 prevEnd = ends.get(i);
120 } 120 }
121 baseRevisionContent.seek(prevEnd); 121 baseRevisionContent.seek(prevEnd);
122 // copy everything in the source past last record's end 122 // copy everything in the source past last record's end
123 baseRevisionContent.readBytes(rv, destIndex, (int) (baseRevisionContent.length() - prevEnd)); 123 baseRevisionContent.readBytes(rv, destIndex, (baseRevisionContent.length() - prevEnd));
124 return rv; 124 return rv;
125 } 125 }
126 126
127 public void clear() { 127 public void clear() {
128 starts.clear(); 128 starts.clear();