Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/Revlog.java @ 601:8143c1f77d45
Remove debug timestamps
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 06 May 2013 17:10:46 +0200 |
parents | 46f29b73e51e |
children | c3505001a42a |
comparison
equal
deleted
inserted
replaced
600:46f29b73e51e | 601:8143c1f77d45 |
---|---|
148 * @param nid revision to look up | 148 * @param nid revision to look up |
149 * @return revision local index in this revlog | 149 * @return revision local index in this revlog |
150 * @throws HgRuntimeException subclass thereof to indicate issues with the library. <em>Runtime exception</em> | 150 * @throws HgRuntimeException subclass thereof to indicate issues with the library. <em>Runtime exception</em> |
151 */ | 151 */ |
152 public final int getRevisionIndex(Nodeid nid) throws HgRuntimeException { | 152 public final int getRevisionIndex(Nodeid nid) throws HgRuntimeException { |
153 // final long t1 = System.nanoTime(); | |
154 int revision; | 153 int revision; |
155 if (useRevisionLookup) { | 154 if (useRevisionLookup) { |
156 if (revisionLookup == null) { | 155 if (revisionLookup == null) { |
157 revisionLookup = RevisionLookup.createFor(content); | 156 revisionLookup = RevisionLookup.createFor(content); |
158 } | 157 } |
164 // using toString() to identify revlog. HgDataFile.toString includes path, HgManifest and HgChangelog instances | 163 // using toString() to identify revlog. HgDataFile.toString includes path, HgManifest and HgChangelog instances |
165 // are fine with default (class name) | 164 // are fine with default (class name) |
166 // Perhaps, more tailored description method would be suitable here | 165 // Perhaps, more tailored description method would be suitable here |
167 throw new HgInvalidRevisionException(String.format("Can't find revision %s in %s", nid.shortNotation(), this), nid, null); | 166 throw new HgInvalidRevisionException(String.format("Can't find revision %s in %s", nid.shortNotation(), this), nid, null); |
168 } | 167 } |
169 // final long t2 = System.nanoTime(); | |
170 // System.out.printf("\tgetRevisionIndex(%s): %d us\n", nid.shortNotation(), (t2-t1)/1000); | |
171 return revision; | 168 return revision; |
172 } | 169 } |
173 | 170 |
174 /** | 171 /** |
175 * Note, {@link Nodeid#NULL} nodeid is not reported as known in any revlog. | 172 * Note, {@link Nodeid#NULL} nodeid is not reported as known in any revlog. |