Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/Revlog.java @ 328:a674b8590362
Move file tree history to upper API level
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 05 Oct 2011 07:13:57 +0200 |
parents | 3f09b8c19142 |
children | 8da7ade36c57 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/Revlog.java Tue Oct 04 07:24:44 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/Revlog.java Wed Oct 05 07:13:57 2011 +0200 @@ -87,10 +87,13 @@ } public final Nodeid getRevision(int revision) { - // XXX cache nodeids? + // XXX cache nodeids? Rather, if context.getCache(this).getRevisionMap(create == false) != null, use it return Nodeid.fromBinary(content.nodeid(revision), 0); } + /** + * FIXME need to be careful about (1) ordering of the revisions in the return list; (2) modifications (sorting) of the argument array + */ public final List<Nodeid> getRevisions(int... revisions) { ArrayList<Nodeid> rv = new ArrayList<Nodeid>(revisions.length); Arrays.sort(revisions);