comparison cmdline/org/tmatesoft/hg/console/Tags.java @ 424:6437d261048a

Deprecated code removed
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 28 Mar 2012 15:42:15 +0200
parents 2fadf8695f8a
children
comparison
equal deleted inserted replaced
423:9c9c442b5f2e 424:6437d261048a
1 /* 1 /*
2 * Copyright (c) 2011 TMate Software Ltd 2 * Copyright (c) 2011-2012 TMate Software Ltd
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License. 6 * the Free Software Foundation; version 2 of the License.
7 * 7 *
52 int x1 = ti2index.get(o1); 52 int x1 = ti2index.get(o1);
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.getAllTags().values()) {
58 int x = clog.getRevisionIndex(ti.revision()); // XXX in fact, performance hog. Need batch revisionIndex 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) {