Mercurial > jhg
diff 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 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgManifestCommand.java Mon Jul 22 22:47:06 2013 +0200 +++ b/src/org/tmatesoft/hg/core/HgManifestCommand.java Wed Jul 24 16:40:15 2013 +0200 @@ -77,6 +77,22 @@ } /** + * Limit command to visit specific subset of repository revisions + * + * @see #range(int, int) + * @param cset1 range start revision + * @param cset2 range end revision + * @return <code>this</code> instance for convenience + * @throws HgBadArgumentException if revisions are not valid changeset identifiers + */ + public HgManifestCommand range(Nodeid cset1, Nodeid cset2) throws HgBadArgumentException { + CsetParamKeeper pk = new CsetParamKeeper(repo); + int r1 = pk.set(cset1).get(); + int r2 = pk.set(cset2).get(); + return range(r1, r2); + } + + /** * Select changeset for the command using revision index * @param csetRevisionIndex index of changeset revision * @return <code>this</code> for convenience.