Mercurial > jhg
comparison src/com/tmate/hgkit/console/Main.java @ 51:9429c7bd1920 wrap-data-access
Try DataAccess to reach revision data instead of plain byte arrays
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sun, 16 Jan 2011 01:20:26 +0100 |
parents | b01500fe2604 |
children |
comparison
equal
deleted
inserted
replaced
50:f1db8610da62 | 51:9429c7bd1920 |
---|---|
20 * @author artem | 20 * @author artem |
21 */ | 21 */ |
22 public class Main { | 22 public class Main { |
23 | 23 |
24 public static void main(String[] args) throws Exception { | 24 public static void main(String[] args) throws Exception { |
25 // String repo = "/temp/hg/hello/.hg/"; | 25 String repo = "/temp/hg/hello/.hg/"; |
26 // String filename = "store/00changelog.i"; | 26 String filename = "store/00changelog.i"; |
27 // String filename = "store/data/hello.c.i"; | 27 // String filename = "store/data/hello.c.i"; |
28 // String filename = "store/data/docs/readme.i"; | 28 // String filename = "store/data/docs/readme.i"; |
29 String repo = "/eclipse-3.7/ws.hg/com.tmate.hgkit/.hg/"; | 29 // String repo = "/eclipse-3.7/ws.hg/com.tmate.hgkit/.hg/"; |
30 // String filename = "store/data/design.txt.i"; | 30 // String filename = "store/data/design.txt.i"; |
31 String filename = "store/data/src/com/tmate/hgkit/ll/_revlog_stream.java.i"; | 31 // String filename = "store/data/src/com/tmate/hgkit/ll/_revlog_stream.java.i"; |
32 // | 32 // |
33 LinkedList<Changeset> changelog = new LinkedList<Changeset>(); | 33 LinkedList<Changeset> changelog = new LinkedList<Changeset>(); |
34 // | 34 // |
35 DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(repo + filename)))); | 35 DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(repo + filename)))); |
36 DataInput di = dis; | 36 DataInput di = dis; |