Mercurial > hg4j
comparison src/com/tmate/hgkit/console/Main.java @ 22:603806cd2dc6
Status of local working dir against non-tip base revision
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 06 Jan 2011 03:30:20 +0100 |
parents | 571e1b2cc3f7 |
children | b01500fe2604 |
comparison
equal
deleted
inserted
replaced
21:e929cecae4e1 | 22:603806cd2dc6 |
---|---|
1 /* | |
2 * Copyright (c) 2010, 2011 Artem Tikhomirov | |
3 */ | |
1 package com.tmate.hgkit.console; | 4 package com.tmate.hgkit.console; |
2 | 5 |
3 import java.io.BufferedInputStream; | 6 import java.io.BufferedInputStream; |
4 import java.io.DataInput; | 7 import java.io.DataInput; |
5 import java.io.DataInputStream; | 8 import java.io.DataInputStream; |
16 * @author artem | 19 * @author artem |
17 */ | 20 */ |
18 public class Main { | 21 public class Main { |
19 | 22 |
20 public static void main(String[] args) throws Exception { | 23 public static void main(String[] args) throws Exception { |
24 // String repo = "/temp/hg/hello/.hg/"; | |
21 // String filename = "store/00changelog.i"; | 25 // String filename = "store/00changelog.i"; |
22 String filename = "store/data/hello.c.i"; | 26 // String filename = "store/data/hello.c.i"; |
23 // String filename = "store/data/docs/readme.i"; | 27 // String filename = "store/data/docs/readme.i"; |
28 String repo = "/eclipse-3.7/ws.hg/com.tmate.hgkit/.hg/"; | |
29 // String filename = "store/data/design.txt.i"; | |
30 String filename = "store/data/src/com/tmate/hgkit/ll/_revlog_stream.java.i"; | |
31 // | |
24 LinkedList<Changeset> changelog = new LinkedList<Changeset>(); | 32 LinkedList<Changeset> changelog = new LinkedList<Changeset>(); |
25 // | 33 // |
26 DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(new File("/temp/hg/hello/.hg/" + filename)))); | 34 DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(repo + filename)))); |
27 DataInput di = dis; | 35 DataInput di = dis; |
28 dis.mark(10); | 36 dis.mark(10); |
29 int versionField = di.readInt(); | 37 int versionField = di.readInt(); |
30 dis.reset(); | 38 dis.reset(); |
31 final int INLINEDATA = 1 << 16; | 39 final int INLINEDATA = 1 << 16; |