diff src/org/tmatesoft/hg/repo/HgStatusInspector.java @ 360:150500515714

Report non-critical errors during status operation to handler/inspector
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 08 Dec 2011 22:19:27 +0100
parents ee6b467c1a5f
children cd658b24a620
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgStatusInspector.java	Thu Dec 08 15:34:13 2011 +0100
+++ b/src/org/tmatesoft/hg/repo/HgStatusInspector.java	Thu Dec 08 22:19:27 2011 +0100
@@ -35,7 +35,18 @@
 	void copied(Path fnameOrigin, Path fnameAdded);
 	void removed(Path fname);
 	void clean(Path fname);
-	void missing(Path fname); // aka deleted (tracked by Hg, but not available in FS any more
+	/**
+	 * Reports file tracked by Mercurial, but not available in file system any more, aka deleted. 
+	 */
+	void missing(Path fname); // 
 	void unknown(Path fname); // not tracked
 	void ignored(Path fname);
+	/**
+	 * Reports a single file error during status collecting operation. It's up to client to treat the whole operation as successful or not.
+	 * The error reported is otherwise not critical for the status operation.
+	 *  
+	 * @param fname origin of the error
+	 * @param ex describes an error occurred while accessing the file, never <code>null</code>
+	 */
+	void invalid(Path fname, Exception ex);
 }
\ No newline at end of file