Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgBranches.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 | 189dc6dc1c3e |
children | 9c9c442b5f2e |
comparison
equal
deleted
inserted
replaced
366:189dc6dc1c3e | 367:2fadf8695f8a |
---|---|
301 | 301 |
302 void validate(HgChangelog clog, HgChangelog.RevisionMap rmap) throws HgInvalidControlFileException { | 302 void validate(HgChangelog clog, HgChangelog.RevisionMap rmap) throws HgInvalidControlFileException { |
303 int[] localCset = new int[heads.size()]; | 303 int[] localCset = new int[heads.size()]; |
304 int i = 0; | 304 int i = 0; |
305 for (Nodeid h : heads) { | 305 for (Nodeid h : heads) { |
306 localCset[i++] = rmap.localRevision(h); | 306 localCset[i++] = rmap.revisionIndex(h); |
307 } | 307 } |
308 // [0] tipmost, [1] tipmost open | 308 // [0] tipmost, [1] tipmost open |
309 final Nodeid[] tipmost = new Nodeid[] {null, null}; | 309 final Nodeid[] tipmost = new Nodeid[] {null, null}; |
310 final boolean[] allClosed = new boolean[] { true }; | 310 final boolean[] allClosed = new boolean[] { true }; |
311 final ArrayList<Nodeid> _closedHeads = new ArrayList<Nodeid>(heads.size()); | 311 final ArrayList<Nodeid> _closedHeads = new ArrayList<Nodeid>(heads.size()); |