comparison src/org/tmatesoft/hg/internal/RevlogDump.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 f52ca9530774
children e6f72c9829a6
comparison
equal deleted inserted replaced
419:7f136a3fa671 420:6c22bdc0bdfd
74 System.out.println("Index Offset Flags Packed Actual Base Rev Link Rev Parent1 Parent2 nodeid"); 74 System.out.println("Index Offset Flags Packed Actual Base Rev Link Rev Parent1 Parent2 nodeid");
75 int entryIndex = 0; 75 int entryIndex = 0;
76 while (dis.available() > 0) { 76 while (dis.available() > 0) {
77 long l = di.readLong(); 77 long l = di.readLong();
78 long offset = entryIndex == 0 ? 0 : (l >>> 16); 78 long offset = entryIndex == 0 ? 0 : (l >>> 16);
79 int flags = (int) (l & 0X0FFFF); 79 int flags = (int) (l & 0x0FFFF);
80 int compressedLen = di.readInt(); 80 int compressedLen = di.readInt();
81 int actualLen = di.readInt(); 81 int actualLen = di.readInt();
82 int baseRevision = di.readInt(); 82 int baseRevision = di.readInt();
83 int linkRevision = di.readInt(); 83 int linkRevision = di.readInt();
84 int parent1Revision = di.readInt(); 84 int parent1Revision = di.readInt();