Mercurial > hg4j
comparison cmdline/org/tmatesoft/hg/console/Main.java @ 490:b3c16d1aede0
Refactoring: move HgRepository's implementation aspects to Internals (which is now its imlementation counterpart and primary repository class to be used by other parts of the library)
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Thu, 16 Aug 2012 17:08:34 +0200 |
| parents | ae4d6604debd |
| children | d2f6ab541330 |
comparison
equal
deleted
inserted
replaced
| 489:9c0138cda59a | 490:b3c16d1aede0 |
|---|---|
| 152 } | 152 } |
| 153 } | 153 } |
| 154 | 154 |
| 155 // TODO as test | 155 // TODO as test |
| 156 private void readConfigFile() throws Exception { | 156 private void readConfigFile() throws Exception { |
| 157 ConfigFile configFile = new ConfigFile(HgInternals.getContext(hgRepo)); | 157 ConfigFile configFile = new ConfigFile(hgRepo.getSessionContext()); |
| 158 configFile.addLocation(new File(System.getProperty("user.home"), "test-cfg/aaa/config1")); | 158 configFile.addLocation(new File(System.getProperty("user.home"), "test-cfg/aaa/config1")); |
| 159 for (String s : configFile.getSectionNames()) { | 159 for (String s : configFile.getSectionNames()) { |
| 160 System.out.printf("[%s]\n", s); | 160 System.out.printf("[%s]\n", s); |
| 161 for (Map.Entry<String, String> e : configFile.getSection(s).entrySet()) { | 161 for (Map.Entry<String, String> e : configFile.getSection(s).entrySet()) { |
| 162 System.out.printf("%s = %s\n", e.getKey(), e.getValue()); | 162 System.out.printf("%s = %s\n", e.getKey(), e.getValue()); |
