Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestByteChannel.java @ 131:aa1629f36482
Renamed .core classes to start with Hg prefix
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 16 Feb 2011 20:47:56 +0100 |
parents | 7567f4a42fe5 |
children | 3959bffb14e9 |
comparison
equal
deleted
inserted
replaced
130:7567f4a42fe5 | 131:aa1629f36482 |
---|---|
17 package org.tmatesoft.hg.test; | 17 package org.tmatesoft.hg.test; |
18 | 18 |
19 import java.util.Arrays; | 19 import java.util.Arrays; |
20 | 20 |
21 import org.junit.Assert; | 21 import org.junit.Assert; |
22 import org.tmatesoft.hg.core.RepositoryFacade; | 22 import org.tmatesoft.hg.core.HgRepoFacade; |
23 import org.tmatesoft.hg.internal.ByteArrayChannel; | 23 import org.tmatesoft.hg.internal.ByteArrayChannel; |
24 import org.tmatesoft.hg.repo.HgDataFile; | 24 import org.tmatesoft.hg.repo.HgDataFile; |
25 | 25 |
26 /** | 26 /** |
27 * | 27 * |
29 * @author TMate Software Ltd. | 29 * @author TMate Software Ltd. |
30 */ | 30 */ |
31 public class TestByteChannel { | 31 public class TestByteChannel { |
32 | 32 |
33 public static void main(String[] args) throws Exception { | 33 public static void main(String[] args) throws Exception { |
34 RepositoryFacade rf = new RepositoryFacade(); | 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.getRevisionCount() - 1; 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); |