Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestByteChannel.java @ 135:3959bffb14e9
explicit op name instead math op to get last rev number
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 16 Feb 2011 22:00:39 +0100 |
parents | aa1629f36482 |
children | d5268ca7715b |
comparison
equal
deleted
inserted
replaced
134:afac8ddc5dd2 | 135:3959bffb14e9 |
---|---|
32 | 32 |
33 public static void main(String[] args) throws Exception { | 33 public static void main(String[] args) throws Exception { |
34 HgRepoFacade rf = new HgRepoFacade(); | 34 HgRepoFacade rf = new HgRepoFacade(); |
35 rf.init(); | 35 rf.init(); |
36 HgDataFile file = rf.getRepository().getFileNode("src/org/tmatesoft/hg/internal/KeywordFilter.java"); | 36 HgDataFile file = rf.getRepository().getFileNode("src/org/tmatesoft/hg/internal/KeywordFilter.java"); |
37 for (int i = file.getRevisionCount() - 1; i >= 0; i--) { | 37 for (int i = file.getLastRevision(); i >= 0; i--) { |
38 System.out.print("Content for revision:" + i); | 38 System.out.print("Content for revision:" + i); |
39 compareContent(file, i); | 39 compareContent(file, i); |
40 System.out.println(" OK"); | 40 System.out.println(" OK"); |
41 } | 41 } |
42 //CatCommand cmd = rf.createCatCommand(); | 42 //CatCommand cmd = rf.createCatCommand(); |