comparison src/org/tmatesoft/hg/core/HgStatusCommand.java @ 368:8107b95f4280

Update Javadoc with 'revision index'
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 16 Dec 2011 16:00:57 +0100
parents 2fadf8695f8a
children 528b6780a8bd
comparison
equal deleted inserted replaced
367:2fadf8695f8a 368:8107b95f4280
114 } 114 }
115 115
116 /** 116 /**
117 * Revision without base == --change 117 * Revision without base == --change
118 * Pass {@link HgRepository#WORKING_COPY} or {@link HgRepository#BAD_REVISION} to reset 118 * Pass {@link HgRepository#WORKING_COPY} or {@link HgRepository#BAD_REVISION} to reset
119 * @param changesetRevisionIndex - non-negative local revision number, or any of {@link HgRepository#BAD_REVISION}, {@link HgRepository#WORKING_COPY} or {@link HgRepository#TIP} 119 * @param changesetRevisionIndex - non-negative changeset revision local index, or any of {@link HgRepository#BAD_REVISION}, {@link HgRepository#WORKING_COPY} or {@link HgRepository#TIP}
120 * @return <code>this</code> for convenience 120 * @return <code>this</code> for convenience
121 * @throws IllegalArgumentException if local revision number doesn't specify legitimate revision. 121 * @throws IllegalArgumentException if revision index doesn't specify legitimate revision.
122 */ 122 */
123 public HgStatusCommand revision(int changesetRevisionIndex) { 123 public HgStatusCommand revision(int changesetRevisionIndex) {
124 if (changesetRevisionIndex == BAD_REVISION) { 124 if (changesetRevisionIndex == BAD_REVISION) {
125 changesetRevisionIndex = WORKING_COPY; 125 changesetRevisionIndex = WORKING_COPY;
126 } 126 }