comparison src/org/tmatesoft/hg/internal/RevlogDump.java @ 88:61eedab3eb3e

Status between two revisions to recognize copy/rename
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 26 Jan 2011 05:46:47 +0100
parents 0d279bcc4442
children a3a2e5deb320
comparison
equal deleted inserted replaced
87:25f2e5d1cd8b 88:61eedab3eb3e
42 String repo = "/temp/hg/hello/.hg/"; 42 String repo = "/temp/hg/hello/.hg/";
43 String filename = "store/00changelog.i"; 43 String filename = "store/00changelog.i";
44 // String filename = "store/data/hello.c.i"; 44 // String filename = "store/data/hello.c.i";
45 // String filename = "store/data/docs/readme.i"; 45 // String filename = "store/data/docs/readme.i";
46 boolean dumpData = true; 46 boolean dumpData = true;
47 if (args.length > 2) { 47 if (args.length > 1) {
48 repo = args[0]; 48 repo = args[0];
49 filename = args[1]; 49 filename = args[1];
50 dumpData = "dumpData".equals(args[2]); 50 dumpData = args.length > 2 ? "dumpData".equals(args[2]) : false;
51 } 51 }
52 // 52 //
53 DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(repo + filename)))); 53 DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(repo + filename))));
54 DataInput di = dis; 54 DataInput di = dis;
55 dis.mark(10); 55 dis.mark(10);