diff src/com/tmate/hgkit/console/Log.java @ 4:aa1912c70b36

Fix offset issue for inline revlogs. Commandline processing.
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 20 Dec 2010 04:20:52 +0100
parents 24bb4f365164
children 5abe5af181bd
line wrap: on
line diff
--- a/src/com/tmate/hgkit/console/Log.java	Mon Dec 20 02:50:36 2010 +0100
+++ b/src/com/tmate/hgkit/console/Log.java	Mon Dec 20 04:20:52 2010 +0100
@@ -15,7 +15,8 @@
 
 	public static void main(String[] args) throws Exception {
 		RepositoryLookup repoLookup = new RepositoryLookup();
-		HgRepository hgRepo = repoLookup.detect(args);
+		RepositoryLookup.Options cmdLineOpts = RepositoryLookup.Options.parse(args);
+		HgRepository hgRepo = repoLookup.detect(cmdLineOpts);
 		if (hgRepo.isInvalid()) {
 			System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation());
 			return;
@@ -28,13 +29,15 @@
 				cset.dump();
 			}
 		};
-		HgDataFile f1 = hgRepo.getFileNode("hello.c");
-		System.out.println("Complete of a file:");
-		f1.history(callback);
+		for (String fname : cmdLineOpts.files) {
+			HgDataFile f1 = hgRepo.getFileNode(fname);
+			System.out.println("\nComplete of a file: " + fname);
+			f1.history(callback);
 		//
 //		System.out.println("\n\n=========================");
 //		System.out.println("Range 1-3:");
 //		f1.history(1,3, callback);
+		}
 		//
 		System.out.println("\n\n=========================");
 		System.out.println("Complete of a repo:");