Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgException.java @ 396:0ae53c32ecef
Straighten out exceptions thrown when file access failed - three is too much
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 23 Feb 2012 01:06:24 +0100 |
parents | f52ca9530774 |
children | 2747b0723867 |
comparison
equal
deleted
inserted
replaced
395:4732fffff58a | 396:0ae53c32ecef |
---|---|
59 @Deprecated | 59 @Deprecated |
60 public int getRevisionNumber() { | 60 public int getRevisionNumber() { |
61 return getRevisionIndex(); | 61 return getRevisionIndex(); |
62 } | 62 } |
63 | 63 |
64 | |
65 public HgException setRevisionIndex(int rev) { | 64 public HgException setRevisionIndex(int rev) { |
66 revNumber = rev; | 65 revNumber = rev; |
67 return this; | 66 return this; |
68 } | 67 } |
69 | 68 |
69 public boolean isRevisionIndexSet() { | |
70 return revNumber != BAD_REVISION; | |
71 } | |
72 | |
70 /** | 73 /** |
71 * @deprecated use {@link #setRevisionIndex(int)} | 74 * @deprecated use {@link #setRevisionIndex(int)} |
72 */ | 75 */ |
73 @Deprecated | 76 @Deprecated |
74 public final HgException setRevisionNumber(int rev) { | 77 public final HgException setRevisionNumber(int rev) { |
83 } | 86 } |
84 | 87 |
85 public HgException setRevision(Nodeid r) { | 88 public HgException setRevision(Nodeid r) { |
86 revision = r; | 89 revision = r; |
87 return this; | 90 return this; |
91 } | |
92 | |
93 public boolean isRevisionSet() { | |
94 return revision != null; | |
88 } | 95 } |
89 | 96 |
90 /** | 97 /** |
91 * @return non-null only if file name was set at construction time | 98 * @return non-null only if file name was set at construction time |
92 */ | 99 */ |