comparison src/org/tmatesoft/hg/repo/HgStatusInspector.java @ 442:6865eb742883

Tests for subrepo API, refactor status tests for reuse, better subrepos API
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 27 Apr 2012 20:57:20 +0200
parents cd658b24a620
children
comparison
equal deleted inserted replaced
441:2a08466838d3 442:6865eb742883
29 public interface HgStatusInspector { 29 public interface HgStatusInspector {
30 void modified(Path fname); 30 void modified(Path fname);
31 void added(Path fname); 31 void added(Path fname);
32 /** 32 /**
33 * This method is invoked for files that we added as a result of a copy/move operation, and it's the sole 33 * This method is invoked for files that we added as a result of a copy/move operation, and it's the sole
34 * method invoked in this case, that is {@link #added(Path)} method is NOT invoked along with it. 34 * method invoked in this case, that is {@link #added(Path)} method is NOT invoked along with it.
35 * If copied files of no interest, it is implementation responsibility to delegate to <code>this.added(fnameAdded)</code> 35 * Note, however, {@link #removed(Path)} IS invoked for the removed file in all cases, regardless whether it's a mere rename or not.
36 * <p>The reason why it's not symmetrical ({@link #copied(Path, Path)} and {@link #removed(Path)} but not {@link #added(Path)}) is that Mercurial
37 * does it this way ('copy' is just an extra attribute for Added file), and we try to stay as close as possible here.
38 * <p>If copied files of no interest, it is implementation responsibility to delegate to <code>this.added(fnameAdded)</code>
36 */ 39 */
37 void copied(Path fnameOrigin, Path fnameAdded); 40 void copied(Path fnameOrigin, Path fnameAdded);
38 void removed(Path fname); 41 void removed(Path fname);
39 void clean(Path fname); 42 void clean(Path fname);
40 /** 43 /**