diff cmdline/org/tmatesoft/hg/console/Main.java @ 226:26ad7827a62d

Support status query for a single file or a subdirectory of a repository
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 25 May 2011 12:16:24 +0200
parents 373e07cd3991
children 1ec6b327a6ac
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Main.java	Wed May 25 05:13:43 2011 +0200
+++ b/cmdline/org/tmatesoft/hg/console/Main.java	Wed May 25 12:16:24 2011 +0200
@@ -61,7 +61,8 @@
 
 	public static void main(String[] args) throws Exception {
 		Main m = new Main(args);
-		m.dumpBranches();
+		m.testFileStatus();
+//		m.dumpBranches();
 //		m.inflaterLengthException();
 //		m.dumpIgnored();
 //		m.dumpDirstate();
@@ -72,6 +73,13 @@
 //		m.bunchOfTests();
 	}
 	
+	private void testFileStatus() {
+//		final Path path = Path.create("src/org/tmatesoft/hg/util/");
+		final Path path = Path.create("src/org/tmatesoft/hg/internal/Experimental.java");
+		HgWorkingCopyStatusCollector wcsc = HgWorkingCopyStatusCollector.create(hgRepo, path);
+		wcsc.walk(TIP, new StatusDump());
+	}
+	
 	private void dumpBranches() {
 		HgBranches b = hgRepo.getBranches();
 		for (HgBranches.BranchInfo bi : b.getAllBranches()) {