Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestAuxUtilities.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 | d9dfa9fe9cec |
children | 528b6780a8bd d0e5dc3cae6e |
comparison
equal
deleted
inserted
replaced
366:189dc6dc1c3e | 367:2fadf8695f8a |
---|---|
235 int i = 0; | 235 int i = 0; |
236 | 236 |
237 public void next(int localRevision, Nodeid revision, int linkedRevision) { | 237 public void next(int localRevision, Nodeid revision, int linkedRevision) { |
238 try { | 238 try { |
239 Assert.assertEquals(i++, localRevision); | 239 Assert.assertEquals(i++, localRevision); |
240 Assert.assertEquals(fileNode.getChangesetLocalRevision(localRevision), linkedRevision); | 240 Assert.assertEquals(fileNode.getChangesetRevisionIndex(localRevision), linkedRevision); |
241 Assert.assertEquals(fileNode.getRevision(localRevision), revision); | 241 Assert.assertEquals(fileNode.getRevision(localRevision), revision); |
242 } catch (HgException ex) { | 242 } catch (HgException ex) { |
243 Assert.fail(ex.toString()); | 243 Assert.fail(ex.toString()); |
244 } | 244 } |
245 } | 245 } |