diff src/com/tmate/hgkit/console/Status.java @ 20:11cfabe692b3

Status operation for two repository revisions (no local dir involved)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 04 Jan 2011 02:08:25 +0100
parents 02ee376bee79
children 603806cd2dc6
line wrap: on
line diff
--- a/src/com/tmate/hgkit/console/Status.java	Tue Jan 04 01:01:39 2011 +0100
+++ b/src/com/tmate/hgkit/console/Status.java	Tue Jan 04 02:08:25 2011 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010 Artem Tikhomirov 
+ * Copyright (c) 2010, 2011 Artem Tikhomirov 
  */
 package com.tmate.hgkit.console;
 
@@ -25,10 +25,13 @@
 		}
 		System.out.println(hgRepo.getLocation());
 		((LocalHgRepo) hgRepo).loadDirstate().dump();
-		//hgRepo.status(TIP, TIP, new StatusDump());
 		final StatusDump dump = new StatusDump();
 		dump.showIgnored = false;
 		dump.showClean = false;
+		final int r1 = 0, r2 = 11;
+		System.out.printf("Status for changes between revision %d and %d:\n", r1, r2);
+		hgRepo.status(r1, r2, dump);
+		System.out.println("\nStatus against working dir:");
 		((LocalHgRepo) hgRepo).statusLocal(TIP, dump);
 	}