Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
235:fd845a53f53d | 236:883300108179 |
---|---|
79 } | 79 } |
80 }; | 80 }; |
81 Arrays.sort(revisions); | 81 Arrays.sort(revisions); |
82 content.iterate(revisions[0], revisions[revisions.length - 1], true, i); | 82 content.iterate(revisions[0], revisions[revisions.length - 1], true, i); |
83 } | 83 } |
84 | |
85 public RawChangeset changeset(Nodeid nid) { | |
86 int x = getLocalRevision(nid); | |
87 return range(x, x).get(0); | |
88 } | |
84 | 89 |
85 public interface Inspector { | 90 public interface Inspector { |
86 // TODO describe whether cset is new instance each time | 91 // TODO describe whether cset is new instance each time |
87 // describe what revisionNumber is when Inspector is used with HgBundle (BAD_REVISION or bundle's local order?) | 92 // describe what revisionNumber is when Inspector is used with HgBundle (BAD_REVISION or bundle's local order?) |
88 void next(int revisionNumber, Nodeid nodeid, RawChangeset cset); | 93 void next(int revisionNumber, Nodeid nodeid, RawChangeset cset); |