comparison src/org/tmatesoft/hg/internal/RevlogStream.java @ 530:0f6fa88e2162

Towards commit command: refactor clone, extract pieces to reuse. Describe a defect discovered when bundle has few patches with 0,0 parents
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 23 Jan 2013 17:46:12 +0100
parents 1ee452f31187
children 243202f1bda5
comparison
equal deleted inserted replaced
529:95bdcf75e71e 530:0f6fa88e2162
1 /* 1 /*
2 * Copyright (c) 2010-2012 TMate Software Ltd 2 * Copyright (c) 2010-2013 TMate Software Ltd
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License. 6 * the Free Software Foundation; version 2 of the License.
7 * 7 *
16 */ 16 */
17 package org.tmatesoft.hg.internal; 17 package org.tmatesoft.hg.internal;
18 18
19 import static org.tmatesoft.hg.repo.HgRepository.BAD_REVISION; 19 import static org.tmatesoft.hg.repo.HgRepository.BAD_REVISION;
20 import static org.tmatesoft.hg.repo.HgRepository.TIP; 20 import static org.tmatesoft.hg.repo.HgRepository.TIP;
21 import static org.tmatesoft.hg.internal.Internals.REVLOGV1_RECORD_SIZE;
21 22
22 import java.io.File; 23 import java.io.File;
23 import java.io.IOException; 24 import java.io.IOException;
24 import java.util.zip.Inflater; 25 import java.util.zip.Inflater;
25 26
199 daIndex.done(); 200 daIndex.done();
200 } 201 }
201 return BAD_REVISION; 202 return BAD_REVISION;
202 } 203 }
203 204
204
205 private final int REVLOGV1_RECORD_SIZE = 64;
206 205
207 // should be possible to use TIP, ALL, or -1, -2, -n notation of Hg 206 // should be possible to use TIP, ALL, or -1, -2, -n notation of Hg
208 // ? boolean needsNodeid 207 // ? boolean needsNodeid
209 public void iterate(int start, int end, boolean needData, Inspector inspector) throws HgInvalidRevisionException, HgInvalidControlFileException { 208 public void iterate(int start, int end, boolean needData, Inspector inspector) throws HgInvalidRevisionException, HgInvalidControlFileException {
210 initOutline(); 209 initOutline();