Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgStatusInspector.java @ 316:ee6b467c1a5f
Supply HGFileRevision with copy information when possible, calculate it otherwise
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 28 Sep 2011 13:09:16 +0200 |
parents | 4a948ec83980 |
children | 150500515714 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgStatusInspector.java Wed Sep 28 12:18:21 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgStatusInspector.java Wed Sep 28 13:09:16 2011 +0200 @@ -27,8 +27,12 @@ public interface HgStatusInspector { void modified(Path fname); void added(Path fname); - // XXX need to specify whether StatusCollector invokes added() along with copied or not! - void copied(Path fnameOrigin, Path fnameAdded); // if copied files of no interest, should delegate to self.added(fnameAdded); + /** + * This method is invoked for files that we added as a result of a copy/move operation, and it's the sole + * method invoked in this case, that is {@link #added(Path)} method is NOT invoked along with it. + * If copied files of no interest, it is implementation responsibility to delegate to <code>this.added(fnameAdded)</code> + */ + 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