Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgException.java @ 367:2fadf8695f8a
Use 'revision index' instead of the vague 'local revision number' concept in the API
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 16 Dec 2011 15:37:27 +0100 |
parents | 678e326fd27c |
children | 8107b95f4280 |
comparison
equal
deleted
inserted
replaced
366:189dc6dc1c3e | 367:2fadf8695f8a |
---|---|
45 public HgException(Throwable cause) { | 45 public HgException(Throwable cause) { |
46 super(cause); | 46 super(cause); |
47 } | 47 } |
48 | 48 |
49 /** | 49 /** |
50 * @return not {@link HgRepository#BAD_REVISION} only when local revision number was supplied at the construction time | 50 * @return not {@link HgRepository#BAD_REVISION} only when local revision index was supplied at the construction time |
51 */ | 51 */ |
52 public int getRevisionNumber() { | 52 public int getRevisionIndex() { |
53 return revNumber; | 53 return revNumber; |
54 } | 54 } |
55 | 55 |
56 public HgException setRevisionNumber(int rev) { | 56 /** |
57 * @deprecated use {@link #getRevisionIndex()} | |
58 */ | |
59 @Deprecated | |
60 public int getRevisionNumber() { | |
61 return getRevisionIndex(); | |
62 } | |
63 | |
64 | |
65 public HgException setRevisionIndex(int rev) { | |
57 revNumber = rev; | 66 revNumber = rev; |
58 return this; | 67 return this; |
68 } | |
69 | |
70 /** | |
71 * @deprecated use {@link #setRevisionIndex(int)} | |
72 */ | |
73 @Deprecated | |
74 public final HgException setRevisionNumber(int rev) { | |
75 return setRevisionIndex(rev); | |
59 } | 76 } |
60 | 77 |
61 /** | 78 /** |
62 * @return non-null only when revision was supplied at construction time | 79 * @return non-null only when revision was supplied at construction time |
63 */ | 80 */ |