comparison src/org/tmatesoft/hg/core/HgLogCommand.java @ 253:1874d11054e5

HgLogCommand.changeset(Nodeid) to ease command configuration
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 15 Aug 2011 18:59:05 +0200
parents 9ef71bd26db1
children 6d1804fe0ed7
comparison
equal deleted inserted replaced
252:a6d19adc2636 253:1874d11054e5
137 } else { 137 } else {
138 startRev = rev1; 138 startRev = rev1;
139 endRev = rev2; 139 endRev = rev2;
140 } 140 }
141 return this; 141 return this;
142 }
143
144 /**
145 * Select specific changeset
146 *
147 * @param nid changeset revision
148 * @return <code>this</code> for convenience
149 */
150 public HgLogCommand changeset(Nodeid nid) {
151 // XXX perhaps, shall support multiple (...) arguments and extend #execute to handle not only range, but also set of revisions.
152 final int csetLocal = repo.getChangelog().getLocalRevision(nid);
153 return range(csetLocal, csetLocal);
142 } 154 }
143 155
144 /** 156 /**
145 * Visit history of a given file only. 157 * Visit history of a given file only.
146 * @param file path relative to repository root. Pass <code>null</code> to reset. 158 * @param file path relative to repository root. Pass <code>null</code> to reset.