comparison cmdline/org/tmatesoft/hg/console/Tags.java @ 367:2fadf8695f8a

Use 'revision index' instead of the vague 'local revision number' concept in the API
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 16 Dec 2011 15:37:27 +0100
parents 45dc79e545f5
children 6437d261048a
comparison
equal deleted inserted replaced
366:189dc6dc1c3e 367:2fadf8695f8a
53 int x2 = ti2index.get(o2); 53 int x2 = ti2index.get(o2);
54 return x1 < x2 ? 1 : -1; 54 return x1 < x2 ? 1 : -1;
55 } 55 }
56 }); 56 });
57 for (TagInfo ti : tags.getTags().values()) { 57 for (TagInfo ti : tags.getTags().values()) {
58 int x = clog.getLocalRevision(ti.revision()); // XXX in fact, performance hog. Need batch localRevision or another improvement 58 int x = clog.getRevisionIndex(ti.revision()); // XXX in fact, performance hog. Need batch revisionIndex or another improvement
59 ti2index.put(ti, x); 59 ti2index.put(ti, x);
60 sorted.add(ti); 60 sorted.add(ti);
61 } 61 }
62 for (TagInfo ti : sorted) { 62 for (TagInfo ti : sorted) {
63 int x = ti2index.get(ti); 63 int x = ti2index.get(ti);