comparison src/org/tmatesoft/hg/repo/HgTags.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 5f9073eabf06
children 9c9c442b5f2e
comparison
equal deleted inserted replaced
366:189dc6dc1c3e 367:2fadf8695f8a
239 return localFromName.containsKey(name); 239 return localFromName.containsKey(name);
240 } 240 }
241 241
242 public String branch() throws HgInvalidControlFileException { 242 public String branch() throws HgInvalidControlFileException {
243 if (branch == null) { 243 if (branch == null) {
244 int x = repo.getChangelog().getLocalRevision(revision()); 244 int x = repo.getChangelog().getRevisionIndex(revision());
245 branch = repo.getChangelog().range(x, x).get(0).branch(); 245 branch = repo.getChangelog().range(x, x).get(0).branch();
246 } 246 }
247 return branch; 247 return branch;
248 } 248 }
249 public Nodeid revision() { 249 public Nodeid revision() {