Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgStatus.java @ 127:2e395db595e2
Moved HgStatus to toplevel
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 16 Feb 2011 18:42:10 +0100 |
parents | |
children | 44b97930570c |
comparison
equal
deleted
inserted
replaced
126:b92a638764be | 127:2e395db595e2 |
---|---|
1 /* | |
2 * Copyright (c) 2011 TMate Software Ltd | |
3 * | |
4 * This program is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; version 2 of the License. | |
7 * | |
8 * This program is distributed in the hope that it will be useful, | |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 * GNU General Public License for more details. | |
12 * | |
13 * For information on how to redistribute this software under | |
14 * the terms of a license other than GNU General Public License | |
15 * contact TMate Software at support@svnkit.com | |
16 */ | |
17 package org.tmatesoft.hg.core; | |
18 | |
19 public class HgStatus { | |
20 | |
21 public enum Kind { | |
22 Modified, Added, Removed, Unknown, Missing, Clean, Ignored | |
23 }; | |
24 | |
25 private final HgStatus.Kind kind; | |
26 private final Path path; | |
27 private final Path origin; | |
28 | |
29 HgStatus(HgStatus.Kind kind, Path path) { | |
30 this(kind, path, null); | |
31 } | |
32 | |
33 HgStatus(HgStatus.Kind kind, Path path, Path copyOrigin) { | |
34 this.kind = kind; | |
35 this.path = path; | |
36 origin = copyOrigin; | |
37 } | |
38 | |
39 public HgStatus.Kind getKind() { | |
40 return kind; | |
41 } | |
42 | |
43 public Path getPath() { | |
44 return path; | |
45 } | |
46 | |
47 public Path getOriginalPath() { | |
48 return origin; | |
49 } | |
50 | |
51 public boolean isCopy() { | |
52 return origin != null; | |
53 } | |
54 | |
55 // public String getModificationAuthor() { | |
56 // } | |
57 // | |
58 // public Date getModificationDate() { | |
59 // } | |
60 } |