Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgManifestCommand.java @ 683:98ff1fb49abe
Update commands to use changeset Nodeid and int in uniform way, clients of core.* classes shall not go back and forth from int to Nodeid
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 24 Jul 2013 16:40:15 +0200 |
parents | 6526d8adbc0f |
children |
comparison
equal
deleted
inserted
replaced
682:f568330dd9c0 | 683:98ff1fb49abe |
---|---|
72 throw new IllegalArgumentException(String.format("Bad range: [%d, %d]", rev1, rev2)); | 72 throw new IllegalArgumentException(String.format("Bad range: [%d, %d]", rev1, rev2)); |
73 } | 73 } |
74 startRev = rev1; | 74 startRev = rev1; |
75 endRev = rev2; | 75 endRev = rev2; |
76 return this; | 76 return this; |
77 } | |
78 | |
79 /** | |
80 * Limit command to visit specific subset of repository revisions | |
81 * | |
82 * @see #range(int, int) | |
83 * @param cset1 range start revision | |
84 * @param cset2 range end revision | |
85 * @return <code>this</code> instance for convenience | |
86 * @throws HgBadArgumentException if revisions are not valid changeset identifiers | |
87 */ | |
88 public HgManifestCommand range(Nodeid cset1, Nodeid cset2) throws HgBadArgumentException { | |
89 CsetParamKeeper pk = new CsetParamKeeper(repo); | |
90 int r1 = pk.set(cset1).get(); | |
91 int r2 = pk.set(cset2).get(); | |
92 return range(r1, r2); | |
77 } | 93 } |
78 | 94 |
79 /** | 95 /** |
80 * Select changeset for the command using revision index | 96 * Select changeset for the command using revision index |
81 * @param csetRevisionIndex index of changeset revision | 97 * @param csetRevisionIndex index of changeset revision |