comparison src/org/tmatesoft/hg/core/HgManifestCommand.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 189dc6dc1c3e
children 8107b95f4280
comparison
equal deleted inserted replaced
366:189dc6dc1c3e 367:2fadf8695f8a
53 repo = hgRepo; 53 repo = hgRepo;
54 } 54 }
55 55
56 /** 56 /**
57 * Parameterize command to visit revisions <code>[rev1..rev2]</code>. 57 * Parameterize command to visit revisions <code>[rev1..rev2]</code>.
58 * @param rev1 - local revision number to start from. Non-negative. May be {@link HgRepository#TIP} (rev2 argument shall be {@link HgRepository#TIP} as well, then) 58 * @param rev1 - local revision index to start from. Non-negative. May be {@link HgRepository#TIP} (rev2 argument shall be {@link HgRepository#TIP} as well, then)
59 * @param rev2 - local revision number to end with, inclusive. Non-negative, greater or equal to rev1. May be {@link HgRepository#TIP}. 59 * @param rev2 - local revision index to end with, inclusive. Non-negative, greater or equal to rev1. May be {@link HgRepository#TIP}.
60 * @return <code>this</code> for convenience. 60 * @return <code>this</code> for convenience.
61 * @throws IllegalArgumentException if revision arguments are incorrect (see above). 61 * @throws IllegalArgumentException if revision arguments are incorrect (see above).
62 */ 62 */
63 public HgManifestCommand range(int rev1, int rev2) { 63 public HgManifestCommand range(int rev1, int rev2) {
64 // XXX if manifest range is different from that of changelog, need conversion utils (external?) 64 // XXX if manifest range is different from that of changelog, need conversion utils (external?)