comparison src/com/tmate/hgkit/ll/HgRepository.java @ 55:05829a70b30b

Status operation extracted into separate, cache-friendly class
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 17 Jan 2011 04:45:09 +0100
parents f1db8610da62
children 19e9e220bf68
comparison
equal deleted inserted replaced
54:fd4f2c98995b 55:05829a70b30b
65 65
66 /** 66 /**
67 * Perhaps, should be separate interface, like ContentLookup 67 * Perhaps, should be separate interface, like ContentLookup
68 */ 68 */
69 protected abstract RevlogStream resolve(String repositoryPath); 69 protected abstract RevlogStream resolve(String repositoryPath);
70
71 public abstract void status(int rev1, int rev2 /*WorkingDir - TIP, TIP?*/, StatusInspector inspector);
72
73 public interface StatusInspector {
74 void modified(String fname);
75 void added(String fname);
76 void copied(String fnameOrigin, String fnameAdded); // if copied files of no interest, should delegate to self.added(fnameAdded);
77 void removed(String fname);
78 void clean(String fname);
79 void missing(String fname); // aka deleted (tracked by Hg, but not available in FS any more
80 void unknown(String fname); // not tracked
81 void ignored(String fname);
82 }
83 } 70 }