tikhomirov@127: /* tikhomirov@127: * Copyright (c) 2011 TMate Software Ltd tikhomirov@127: * tikhomirov@127: * This program is free software; you can redistribute it and/or modify tikhomirov@127: * it under the terms of the GNU General Public License as published by tikhomirov@127: * the Free Software Foundation; version 2 of the License. tikhomirov@127: * tikhomirov@127: * This program is distributed in the hope that it will be useful, tikhomirov@127: * but WITHOUT ANY WARRANTY; without even the implied warranty of tikhomirov@127: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tikhomirov@127: * GNU General Public License for more details. tikhomirov@127: * tikhomirov@127: * For information on how to redistribute this software under tikhomirov@127: * the terms of a license other than GNU General Public License tikhomirov@127: * contact TMate Software at support@svnkit.com tikhomirov@127: */ tikhomirov@127: package org.tmatesoft.hg.core; tikhomirov@127: tikhomirov@127: public class HgStatus { tikhomirov@127: tikhomirov@127: public enum Kind { tikhomirov@127: Modified, Added, Removed, Unknown, Missing, Clean, Ignored tikhomirov@127: }; tikhomirov@127: tikhomirov@127: private final HgStatus.Kind kind; tikhomirov@127: private final Path path; tikhomirov@127: private final Path origin; tikhomirov@127: tikhomirov@127: HgStatus(HgStatus.Kind kind, Path path) { tikhomirov@127: this(kind, path, null); tikhomirov@127: } tikhomirov@127: tikhomirov@127: HgStatus(HgStatus.Kind kind, Path path, Path copyOrigin) { tikhomirov@127: this.kind = kind; tikhomirov@127: this.path = path; tikhomirov@127: origin = copyOrigin; tikhomirov@127: } tikhomirov@127: tikhomirov@127: public HgStatus.Kind getKind() { tikhomirov@127: return kind; tikhomirov@127: } tikhomirov@127: tikhomirov@127: public Path getPath() { tikhomirov@127: return path; tikhomirov@127: } tikhomirov@127: tikhomirov@127: public Path getOriginalPath() { tikhomirov@127: return origin; tikhomirov@127: } tikhomirov@127: tikhomirov@127: public boolean isCopy() { tikhomirov@127: return origin != null; tikhomirov@127: } tikhomirov@127: tikhomirov@127: // public String getModificationAuthor() { tikhomirov@127: // } tikhomirov@127: // tikhomirov@127: // public Date getModificationDate() { tikhomirov@127: // } tikhomirov@127: }