diff src/com/tmate/hgkit/ll/HgRepository.java @ 18:02ee376bee79

status operation against current working directory
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 03 Jan 2011 20:42:52 +0100
parents df8c67f3006a
children 11cfabe692b3
line wrap: on
line diff
--- a/src/com/tmate/hgkit/ll/HgRepository.java	Mon Dec 27 01:43:08 2010 +0100
+++ b/src/com/tmate/hgkit/ll/HgRepository.java	Mon Jan 03 20:42:52 2011 +0100
@@ -58,4 +58,17 @@
 	 * Perhaps, should be separate interface, like ContentLookup
 	 */
 	protected abstract RevlogStream resolve(String repositoryPath);
+
+	public abstract void status(int rev1, int rev2 /*WorkingDir - TIP, TIP?*/, StatusInspector inspector);
+
+	public interface StatusInspector {
+		void modified(String fname);
+		void added(String fname);
+		void copied(String fnameOrigin, String fnameAdded); // if copied files of no interest, should delegate to self.added(fnameAdded);
+		void removed(String fname);
+		void clean(String fname);
+		void missing(String fname);
+		void unknown(String fname); // not tracked
+		void ignored(String fname);
+	}
 }