Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgChangelog.java @ 236:883300108179
Speed up branches calculation when cached branch information is available
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 09 Jun 2011 06:13:43 +0200 |
parents | 644ee58c9f16 |
children | ad6a046943be |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgChangelog.java Tue Jun 07 04:54:13 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgChangelog.java Thu Jun 09 06:13:43 2011 +0200 @@ -81,6 +81,11 @@ Arrays.sort(revisions); content.iterate(revisions[0], revisions[revisions.length - 1], true, i); } + + public RawChangeset changeset(Nodeid nid) { + int x = getLocalRevision(nid); + return range(x, x).get(0); + } public interface Inspector { // TODO describe whether cset is new instance each time