tikhomirov@93: /* tikhomirov@93: * Copyright (c) 2010-2011 TMate Software Ltd tikhomirov@93: * tikhomirov@93: * This program is free software; you can redistribute it and/or modify tikhomirov@93: * it under the terms of the GNU General Public License as published by tikhomirov@93: * the Free Software Foundation; version 2 of the License. tikhomirov@93: * tikhomirov@93: * This program is distributed in the hope that it will be useful, tikhomirov@93: * but WITHOUT ANY WARRANTY; without even the implied warranty of tikhomirov@93: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tikhomirov@93: * GNU General Public License for more details. tikhomirov@93: * tikhomirov@93: * For information on how to redistribute this software under tikhomirov@93: * the terms of a license other than GNU General Public License tikhomirov@93: * contact TMate Software at support@svnkit.com tikhomirov@93: */ tikhomirov@93: package org.tmatesoft.hg.repo; tikhomirov@93: tikhomirov@93: import org.tmatesoft.hg.core.Path; tikhomirov@93: tikhomirov@93: /** tikhomirov@93: * Callback to get file status information tikhomirov@93: * tikhomirov@93: * @author Artem Tikhomirov tikhomirov@93: * @author TMate Software Ltd. tikhomirov@93: */ tikhomirov@93: public interface HgStatusInspector { tikhomirov@93: void modified(Path fname); tikhomirov@93: void added(Path fname); tikhomirov@93: // XXX need to specify whether StatusCollector invokes added() along with copied or not! tikhomirov@93: void copied(Path fnameOrigin, Path fnameAdded); // if copied files of no interest, should delegate to self.added(fnameAdded); tikhomirov@93: void removed(Path fname); tikhomirov@93: void clean(Path fname); tikhomirov@93: void missing(Path fname); // aka deleted (tracked by Hg, but not available in FS any more tikhomirov@93: void unknown(Path fname); // not tracked tikhomirov@93: void ignored(Path fname); tikhomirov@93: }