Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgLogCommand.java @ 457:d78cb5ca3053
Get rid of ambiguity in method name
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 18 Jun 2012 17:06:42 +0200 |
parents | 909306e412e2 |
children | b3c16d1aede0 |
comparison
equal
deleted
inserted
replaced
456:909306e412e2 | 457:d78cb5ca3053 |
---|---|
35 import org.tmatesoft.hg.repo.HgChangelog; | 35 import org.tmatesoft.hg.repo.HgChangelog; |
36 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; | 36 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; |
37 import org.tmatesoft.hg.repo.HgDataFile; | 37 import org.tmatesoft.hg.repo.HgDataFile; |
38 import org.tmatesoft.hg.repo.HgInternals; | 38 import org.tmatesoft.hg.repo.HgInternals; |
39 import org.tmatesoft.hg.repo.HgInvalidControlFileException; | 39 import org.tmatesoft.hg.repo.HgInvalidControlFileException; |
40 import org.tmatesoft.hg.repo.HgInvalidRevisionException; | |
40 import org.tmatesoft.hg.repo.HgInvalidStateException; | 41 import org.tmatesoft.hg.repo.HgInvalidStateException; |
41 import org.tmatesoft.hg.repo.HgParentChildMap; | 42 import org.tmatesoft.hg.repo.HgParentChildMap; |
42 import org.tmatesoft.hg.repo.HgRepository; | 43 import org.tmatesoft.hg.repo.HgRepository; |
43 import org.tmatesoft.hg.repo.HgRuntimeException; | 44 import org.tmatesoft.hg.repo.HgRuntimeException; |
44 import org.tmatesoft.hg.repo.HgStatusCollector; | 45 import org.tmatesoft.hg.repo.HgStatusCollector; |
166 public HgLogCommand changeset(Nodeid nid) throws HgBadArgumentException { | 167 public HgLogCommand changeset(Nodeid nid) throws HgBadArgumentException { |
167 // XXX perhaps, shall support multiple (...) arguments and extend #execute to handle not only range, but also set of revisions. | 168 // XXX perhaps, shall support multiple (...) arguments and extend #execute to handle not only range, but also set of revisions. |
168 try { | 169 try { |
169 final int csetRevIndex = repo.getChangelog().getRevisionIndex(nid); | 170 final int csetRevIndex = repo.getChangelog().getRevisionIndex(nid); |
170 return range(csetRevIndex, csetRevIndex); | 171 return range(csetRevIndex, csetRevIndex); |
171 } catch (HgRuntimeException ex) { | 172 } catch (HgInvalidRevisionException ex) { |
172 throw new HgBadArgumentException("Can't find revision", ex).setRevision(nid); | 173 throw new HgBadArgumentException("Can't find revision", ex).setRevision(nid); |
173 } | 174 } |
174 } | 175 } |
175 | 176 |
176 /** | 177 /** |